diff options
author | Stefano <l.stickell@yahoo.it> | 2014-06-12 15:42:57 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-06-12 15:42:57 +0200 |
commit | 48430b4a77b4ae711442fca60dc31eeca89fb2de (patch) | |
tree | 275bebb899f9f18f8085e62c0b494b0baad844e9 /module/plugins/accounts | |
parent | [Zippyshare] fixed #647 (diff) | |
download | pyload-48430b4a77b4ae711442fca60dc31eeca89fb2de.tar.xz |
[Linksnappy] Fixed expired account detect
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/LinksnappyCom.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/module/plugins/accounts/LinksnappyCom.py b/module/plugins/accounts/LinksnappyCom.py index 4a8cd92c6..63b9576d6 100644 --- a/module/plugins/accounts/LinksnappyCom.py +++ b/module/plugins/accounts/LinksnappyCom.py @@ -8,7 +8,7 @@ from module.common.json_layer import json_loads class LinksnappyCom(Account): __name__ = "LinksnappyCom" - __version__ = "0.01" + __version__ = "0.02" __type__ = "account" __description__ = """Linksnappy.com account plugin""" __author_name__ = "stickell" @@ -24,9 +24,13 @@ class LinksnappyCom(Account): if j['error']: return {"premium": False} - validuntil = float(j['return']['expire']) + validuntil = j['return']['expire'] if validuntil == 'lifetime': validuntil = -1 + elif validuntil == 'expired': + return {"premium": False} + else: + validuntil = float(validuntil) if 'trafficleft' not in j['return'] or isinstance(j['return']['trafficleft'], str): trafficleft = -1 |