From 5deded62d94c04be64d34f6b67d07803eea9b6bf Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 20 Dec 2015 18:43:15 +0100 Subject: Spare code cosmetics --- module/plugins/accounts/HighWayMe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/accounts/HighWayMe.py') diff --git a/module/plugins/accounts/HighWayMe.py b/module/plugins/accounts/HighWayMe.py index b2759e63b..13807c99f 100644 --- a/module/plugins/accounts/HighWayMe.py +++ b/module/plugins/accounts/HighWayMe.py @@ -20,8 +20,8 @@ class HighWayMe(MultiAccount): def grab_hosters(self, user, password, data): - json_data = json.loads(self.load("https://high-way.me/api.php", - get={'hoster': 1})) + html = self.load("https://high-way.me/api.php", get={'hoster': 1}) + json_data = json.loads(html) return [element['name'] for element in json_data['hoster']] -- cgit v1.2.3