diff options
author | Nitzo <nitzo2001@yahoo.com> | 2016-05-10 21:09:02 +0200 |
---|---|---|
committer | Nitzo <nitzo2001@yahoo.com> | 2016-05-10 21:09:02 +0200 |
commit | b1951b8d024bb70917a76a7ec0a46145743ce000 (patch) | |
tree | 424a0bd81911cdbcd12e571980404facfd124652 /module | |
parent | Merge pull request #2460 from OndrejIT/stable (diff) | |
download | pyload-b1951b8d024bb70917a76a7ec0a46145743ce000.tar.xz |
[ShareonlineBiz] fix #2456
Diffstat (limited to 'module')
-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']) |