summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-31 20:07:17 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-31 20:07:17 +0100
commit7888227c5e89ea807fc2c3f65120f56d25655075 (patch)
tree229becf59405e9002c607f459c293c647c0a90b4 /module
parent[ExtractArchive] Fix typo (thx VinceGitHub) (diff)
downloadpyload-7888227c5e89ea807fc2c3f65120f56d25655075.tar.xz
[ZeveraCom] Re-fix account expire recognition
Diffstat (limited to 'module')
-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 15b6d9379..d1585111a 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.25"
+ __version__ = "0.26"
__description__ = """Zevera.com account plugin"""
__license__ = "GPLv3"
@@ -39,7 +39,7 @@ class ZeveraCom(Account):
api = self.api_response(req)
- if "No trafic" not in api or "Expired" not in api:
+ if "No trafic" not in api and api['endsubscriptiondate'] != "Expired!":
validuntil = mktime(strptime(api['endsubscriptiondate'], "%Y/%m/%d %H:%M:%S"))
trafficleft = float(api['availabletodaytraffic']) * 1024 if api['orondaytrafficlimit'] != '0' else -1
premium = True