diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-22 20:20:49 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-22 20:20:49 +0100 |
commit | 8e605a8b234974a89c93d38bccae9d19f86e965d (patch) | |
tree | c4f9f81663d894e0dda8caa272bb4bb6f7c2864d /module/plugins/internal/XFSAccount.py | |
parent | Revert remaining modules (diff) | |
download | pyload-8e605a8b234974a89c93d38bccae9d19f86e965d.tar.xz |
[XFSAccount] Fix trafficleft
Diffstat (limited to 'module/plugins/internal/XFSAccount.py')
-rw-r--r-- | module/plugins/internal/XFSAccount.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/module/plugins/internal/XFSAccount.py b/module/plugins/internal/XFSAccount.py index 627dc75c4..4a3d0696b 100644 --- a/module/plugins/internal/XFSAccount.py +++ b/module/plugins/internal/XFSAccount.py @@ -12,7 +12,7 @@ from module.plugins.internal.SimpleHoster import parseHtmlForm, set_cookies class XFSAccount(Account): __name__ = "XFSAccount" __type__ = "account" - __version__ = "0.26" + __version__ = "0.27" __description__ = """XFileSharing account plugin""" __license__ = "GPLv3" @@ -71,6 +71,7 @@ class XFSAccount(Account): else: if validuntil > mktime(gmtime()): premium = True + trafficleft = -1 else: premium = False validuntil = None #: registered account type (not premium) @@ -97,9 +98,6 @@ class XFSAccount(Account): except Exception, e: self.logError(e) - else: - if premium: - trafficleft = -1 return {'validuntil': validuntil, 'trafficleft': trafficleft, 'premium': premium} |