diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-12 22:52:29 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-12 22:52:29 +0100 |
commit | 57caf746438ed6787980bebf82bbbb8316573cac (patch) | |
tree | 9f5a4d6c2c59190f7713f9bfed21f933a6cc23e5 /module/plugins/accounts/SimplyPremiumCom.py | |
parent | [SimpleHoster] Fix previous commit (diff) | |
parent | Update SimplyPremiumCom.py (diff) | |
download | pyload-57caf746438ed6787980bebf82bbbb8316573cac.tar.xz |
Merge pull request #1037 from EvolutionClip/stable
Update SimplyPremiumCom.py
Diffstat (limited to 'module/plugins/accounts/SimplyPremiumCom.py')
-rw-r--r-- | module/plugins/accounts/SimplyPremiumCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/accounts/SimplyPremiumCom.py b/module/plugins/accounts/SimplyPremiumCom.py index accb3aba8..79daf245e 100644 --- a/module/plugins/accounts/SimplyPremiumCom.py +++ b/module/plugins/accounts/SimplyPremiumCom.py @@ -7,7 +7,7 @@ from module.plugins.Account import Account class SimplyPremiumCom(Account): __name__ = "SimplyPremiumCom" __type__ = "account" - __version__ = "0.03" + __version__ = "0.04" __description__ = """Simply-Premium.com account plugin""" __license__ = "GPLv3" @@ -28,8 +28,8 @@ class SimplyPremiumCom(Account): if 'timeend' in json_data['result'] and json_data['result']['timeend']: validuntil = float(json_data['result']['timeend']) - if 'traffic' in json_data['result'] and json_data['result']['traffic']: - trafficleft = float(json_data['result']['traffic']) / 1024 #@TODO: Remove `/ 1024` in 0.4.10 + if 'remain_traffic' in json_data['result'] and json_data['result']['remain_traffic']: + trafficleft = float(json_data['result']['remain_traffic']) / 1024 #@TODO: Remove `/ 1024` in 0.4.10 return {"premium": True, "validuntil": validuntil, "trafficleft": trafficleft} |