diff options
| author | 2014-10-18 16:29:41 +0200 | |
|---|---|---|
| committer | 2014-10-18 16:29:41 +0200 | |
| commit | 8edb5481e04da44a227e18c76fc4073297721f4f (patch) | |
| tree | 5671cc00785a3945d0001e56567f8063057e38cf /module/plugins/hoster | |
| parent | [XFileSharingPro][XFileSharingProFolder] Account pairing routine (diff) | |
| download | pyload-8edb5481e04da44a227e18c76fc4073297721f4f.tar.xz | |
[XFileSharingPro] Fixes
Diffstat (limited to 'module/plugins/hoster')
| -rw-r--r-- | module/plugins/hoster/XFileSharingPro.py | 14 | 
1 files changed, 9 insertions, 5 deletions
diff --git a/module/plugins/hoster/XFileSharingPro.py b/module/plugins/hoster/XFileSharingPro.py index 4eb6e95d3..fc348c90f 100644 --- a/module/plugins/hoster/XFileSharingPro.py +++ b/module/plugins/hoster/XFileSharingPro.py @@ -25,12 +25,16 @@ class XFileSharingPro(XFSPHoster):          self.HOSTER_NAME = re.match(self.__pattern__, self.pyfile.url).group(1).lower()          account_name = "".join([str.capitalize() for str in self.HOSTER_NAME.split('.')]) -        self.account = self.core.accountManager.getAccountPlugin(account_name) +        account = self.core.accountManager.getAccountPlugin(account_name) -        if self.account and self.account.canUse(): -            self.user, data = self.account.selectAccount() -            self.req = self.account.getAccountRequest(self.user) -            self.premium = self.account.isPremium(self.user) +        if account and account.canUse(): +            self.user, data = account.selectAccount() +            self.req = account.getAccountRequest(self.user) +            self.premium = account.isPremium(self.user) + +            self.account = account +        else: +            self.account.HOSTER_NAME = self.HOSTER_NAME      def setup(self):  | 
