summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/HighWayMe.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 17:12:53 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 17:12:53 +0200
commit6891502d1eb47f3db824ee25a8d978284f3e75e7 (patch)
treee6f530c6a3dab287ef9144bdeee527d50a84c2dd /module/plugins/accounts/HighWayMe.py
parentNew plugin: Http (diff)
downloadpyload-6891502d1eb47f3db824ee25a8d978284f3e75e7.tar.xz
Multi-hoster accounts now extend MultiAccount class
Diffstat (limited to 'module/plugins/accounts/HighWayMe.py')
-rw-r--r--module/plugins/accounts/HighWayMe.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/HighWayMe.py b/module/plugins/accounts/HighWayMe.py
index 3b39b7da6..cd3a36f16 100644
--- a/module/plugins/accounts/HighWayMe.py
+++ b/module/plugins/accounts/HighWayMe.py
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
-from module.common.json_layer import json_loads
-from module.plugins.internal.Account import Account
+from module.plugins.internal.utils import json
+from module.plugins.internal.MultiAccount import MultiAccount
-class HighWayMe(Account):
+class HighWayMe(MultiAccount):
__name__ = "HighWayMe.py"
__type__ = "account"
__version__ = "0.06"
@@ -20,7 +20,7 @@ class HighWayMe(Account):
def grab_hosters(self, user, password, data):
- json_data = json_loads(self.load("https://high-way.me/api.php",
+ json_data = json.loads(self.load("https://high-way.me/api.php",
get={'hoster': 1}))
return [element['name'] for element in json_data['hoster']]
@@ -34,7 +34,7 @@ class HighWayMe(Account):
self.log_debug("JSON data: %s" % json_data)
- json_data = json_loads(json_data)
+ json_data = json.loads(json_data)
if 'premium' in json_data['user'] and json_data['user']['premium']:
premium = True