diff options
Diffstat (limited to 'module/plugins/accounts/ShareonlineBiz.py')
-rw-r--r-- | module/plugins/accounts/ShareonlineBiz.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py index 67cc8250d..2853e48b4 100644 --- a/module/plugins/accounts/ShareonlineBiz.py +++ b/module/plugins/accounts/ShareonlineBiz.py @@ -9,7 +9,7 @@ from module.plugins.internal.misc import set_cookie class ShareonlineBiz(Account): __name__ = "ShareonlineBiz" __type__ = "account" - __version__ = "0.44" + __version__ = "0.45" __status__ = "testing" __description__ = """Share-online.biz account plugin""" @@ -39,11 +39,11 @@ class ShareonlineBiz(Account): trafficleft = -1 maxtraffic = 100 * 1024 * 1024 * 1024 #: 100 GB - api = self.api_response(user, password) + api_info = self.api_response(user, password) - premium = api['group'] in ("PrePaid", "Premium", "Penalty-Premium") - validuntil = float(api['expire_date']) - traffic = float(api['traffic_1d'].split(";")[0]) + premium = api_info['group'] in ("PrePaid", "Premium", "Penalty-Premium", "VIP", "VIP-Special") + validuntil = float(api_info['expire_date']) + traffic = float(api_info['traffic_1d'].split(";")[0]) if maxtraffic > traffic: trafficleft = maxtraffic - traffic @@ -60,5 +60,5 @@ class ShareonlineBiz(Account): def signin(self, user, password, data): - api = self.api_response(user, password) - set_cookie(self.req.cj, "share-online.biz", 'a', api['a']) + api_info = self.api_response(user, password) + set_cookie(self.req.cj, "share-online.biz", 'a', api_info['a']) |