diff options
author | EvolutionClip <evolutionclip@live.de> | 2015-01-12 17:38:00 +0100 |
---|---|---|
committer | EvolutionClip <evolutionclip@live.de> | 2015-01-12 17:38:00 +0100 |
commit | 0fe56f804a7ed4958f33a534e30e3b6c79526ea6 (patch) | |
tree | 00a7e4a3851a6f5649297ad0acd700d22f41ee14 /module/plugins | |
parent | [SimpleHoster] Fix previous commit (diff) | |
download | pyload-0fe56f804a7ed4958f33a534e30e3b6c79526ea6.tar.xz |
Update SimplyPremiumCom.py
Fixed API Call. Value "traffic" not existing in the API.
Diffstat (limited to 'module/plugins')
-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..c302f6589 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 '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} |