diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-27 17:55:24 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-27 17:55:24 +0100 |
commit | 034042758aca0d30dc7bac1e7065e75c88ddf545 (patch) | |
tree | 1da12de277daedf7e7c25b991874ec0be6ca42c0 /module/plugins/accounts | |
parent | Update Extractor (again) (diff) | |
download | pyload-034042758aca0d30dc7bac1e7065e75c88ddf545.tar.xz |
[ZeveraCom] Detect expired account
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/ZeveraCom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/accounts/ZeveraCom.py b/module/plugins/accounts/ZeveraCom.py index 6c69a974f..15b6d9379 100644 --- a/module/plugins/accounts/ZeveraCom.py +++ b/module/plugins/accounts/ZeveraCom.py @@ -8,7 +8,7 @@ from module.plugins.Account import Account class ZeveraCom(Account): __name__ = "ZeveraCom" __type__ = "account" - __version__ = "0.24" + __version__ = "0.25" __description__ = """Zevera.com account plugin""" __license__ = "GPLv3" @@ -39,7 +39,7 @@ class ZeveraCom(Account): api = self.api_response(req) - if api != "No trafic": + if "No trafic" not in api or "Expired" not in api: validuntil = mktime(strptime(api['endsubscriptiondate'], "%Y/%m/%d %H:%M:%S")) trafficleft = float(api['availabletodaytraffic']) * 1024 if api['orondaytrafficlimit'] != '0' else -1 premium = True |