summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-27 17:55:24 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-27 17:55:24 +0100
commit034042758aca0d30dc7bac1e7065e75c88ddf545 (patch)
tree1da12de277daedf7e7c25b991874ec0be6ca42c0 /module/plugins
parentUpdate Extractor (again) (diff)
downloadpyload-034042758aca0d30dc7bac1e7065e75c88ddf545.tar.xz
[ZeveraCom] Detect expired account
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/accounts/ZeveraCom.py4
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