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 | |
parent | [EasybytezCom] Remove unnecessary loadAccountInfo method (diff) | |
download | pyload-227a0eb5157875e75a385118ec3485b044ccdb8a.tar.xz |
Improve loadAccountInfo stuff
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/EasybytezCom.py | 2 | ||||
-rw-r--r-- | module/plugins/accounts/XFileSharingPro.py | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/module/plugins/accounts/EasybytezCom.py b/module/plugins/accounts/EasybytezCom.py index d9d453b85..55d413e04 100644 --- a/module/plugins/accounts/EasybytezCom.py +++ b/module/plugins/accounts/EasybytezCom.py @@ -10,7 +10,7 @@ from module.plugins.internal.XFSPAccount import XFSPAccount class EasybytezCom(XFSPAccount): __name__ = "EasybytezCom" __type__ = "account" - __version__ = "0.08" + __version__ = "0.09" __description__ = """EasyBytez.com account plugin""" __license__ = "GPLv3" 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): |