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/NoPremiumPl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'module/plugins/accounts/NoPremiumPl.py') diff --git a/module/plugins/accounts/NoPremiumPl.py b/module/plugins/accounts/NoPremiumPl.py index ae2f71564..d61c7cbdd 100644 --- a/module/plugins/accounts/NoPremiumPl.py +++ b/module/plugins/accounts/NoPremiumPl.py @@ -32,7 +32,8 @@ class NoPremiumPl(MultiAccount): 'info' : "1" } def grab_hosters(self, user, password, data): - hostings = json.loads(self.load("https://www.nopremium.pl/clipboard.php?json=3").strip()) + html = self.load("https://www.nopremium.pl/clipboard.php?json=3").strip() + hostings = json.loads(html) hostings_domains = [domain for row in hostings for domain in row['domains'] if row['sdownload'] == "0"] self.log_debug(hostings_domains) -- cgit v1.2.3