summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/HighWayMe.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/HighWayMe.py')
-rw-r--r--module/plugins/accounts/HighWayMe.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/module/plugins/accounts/HighWayMe.py b/module/plugins/accounts/HighWayMe.py
index 69219a834..eba1b4692 100644
--- a/module/plugins/accounts/HighWayMe.py
+++ b/module/plugins/accounts/HighWayMe.py
@@ -1,15 +1,15 @@
# -*- coding: utf-8 -*-
from module.common.json_layer import json_loads
-from module.plugins.Account import Account
+from module.plugins.internal.Account import Account
class HighWayMe(Account):
__name__ = "HighWayMe.py"
__type__ = "account"
- __version__ = "0.01"
+ __version__ = "0.03"
- __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(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)