diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-06 03:33:26 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-06 03:33:26 +0200 |
commit | b81d202ab0eeb692a85ee4dda946810fb9886f59 (patch) | |
tree | 2f73c35cffd246bc1b4a4af0eb2e6b7f1a81b459 /module/plugins/accounts | |
parent | Merge pull request #1455 from EvolutionClip/stable (diff) | |
download | pyload-b81d202ab0eeb692a85ee4dda946810fb9886f59.tar.xz |
[HighWayMe] Cleanup
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/HighWayMe.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/accounts/HighWayMe.py b/module/plugins/accounts/HighWayMe.py index 76330a3d1..d09c53c63 100644 --- a/module/plugins/accounts/HighWayMe.py +++ b/module/plugins/accounts/HighWayMe.py @@ -9,7 +9,7 @@ class HighWayMe.py(Account): __type__ = "account" __version__ = "0.01" - __description__ = """High-Way.Me account plugin""" + __description__ = """High-Way.me account plugin""" __license__ = "GPLv3" __authors__ = [("EvolutionClip", "evolutionclip@live.de")] @@ -34,11 +34,12 @@ class HighWayMe.py(Account): if 'premium_traffic' in json_data['user'] and json_data['user']['premium_traffic']: trafficleft = float(json_data['user']['premium_traffic']) / 1024 #@TODO: Remove `/ 1024` in 0.4.10 - return {"premium": premium, "validuntil": validuntil, "trafficleft": trafficleft} + return {'premium' : premium, + 'validuntil' : validuntil, + 'trafficleft': trafficleft} def login(self, user, data, req): - html = req.load("https://high-way.me/api.php?login", post={'login': '1', 'user': user, 'pass': data['password']}, decode=True) |