diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-28 21:55:21 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-28 21:55:21 +0100 |
commit | 227a0eb5157875e75a385118ec3485b044ccdb8a (patch) | |
tree | 137c21b9abc2cc644a87f03c36bfd7e20981d5b5 /module/plugins/accounts/XFileSharingPro.py | |
parent | [EasybytezCom] Remove unnecessary loadAccountInfo method (diff) | |
download | pyload-227a0eb5157875e75a385118ec3485b044ccdb8a.tar.xz |
Improve loadAccountInfo stuff
Diffstat (limited to 'module/plugins/accounts/XFileSharingPro.py')
-rw-r--r-- | module/plugins/accounts/XFileSharingPro.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/accounts/XFileSharingPro.py b/module/plugins/accounts/XFileSharingPro.py index 17f46e102..16d1ccfda 100644 --- a/module/plugins/accounts/XFileSharingPro.py +++ b/module/plugins/accounts/XFileSharingPro.py @@ -8,7 +8,7 @@ from module.plugins.internal.XFSPAccount import XFSPAccount class XFileSharingPro(XFSPAccount): __name__ = "XFileSharingPro" __type__ = "account" - __version__ = "0.02" + __version__ = "0.03" __description__ = """XFileSharingPro multi-purpose account plugin""" __license__ = "GPLv3" @@ -19,10 +19,7 @@ class XFileSharingPro(XFSPAccount): def loadAccountInfo(self, user, req): - if self.HOSTER_NAME: - return super(XFileSharingPro, self).loadAccountInfo(user, req) - else: - return {'validuntil': None, 'trafficleft': None, 'premium': None} + return super(XFileSharingPro if self.HOSTER_NAME else XFSPAccount, self).loadAccountInfo(user, req) def login(self, user, data, req): |