summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-22 20:20:49 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-22 20:20:49 +0100
commit8e605a8b234974a89c93d38bccae9d19f86e965d (patch)
treec4f9f81663d894e0dda8caa272bb4bb6f7c2864d /module
parentRevert remaining modules (diff)
downloadpyload-8e605a8b234974a89c93d38bccae9d19f86e965d.tar.xz
[XFSAccount] Fix trafficleft
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/XFSAccount.py6
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}