From 4a81799278ae003bfbd7897f7bcd1ef46642d953 Mon Sep 17 00:00:00 2001 From: Stefano Date: Tue, 23 Jul 2013 20:22:42 +0200 Subject: Fixed PEP 8 violations in Accounts (cherry picked from commit f5535809bebc6cc343475704832c8fd8674d2d06) Conflicts: pyload/plugins/accounts/AlldebridCom.py pyload/plugins/accounts/Premium4Me.py pyload/plugins/accounts/PremiumizeMe.py pyload/plugins/accounts/RealdebridCom.py --- pyload/plugins/accounts/Premium4Me.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pyload/plugins/accounts/Premium4Me.py') diff --git a/pyload/plugins/accounts/Premium4Me.py b/pyload/plugins/accounts/Premium4Me.py index 3b0d24488..7f49cca30 100644 --- a/pyload/plugins/accounts/Premium4Me.py +++ b/pyload/plugins/accounts/Premium4Me.py @@ -1,4 +1,3 @@ - from pyload.plugins.MultiHoster import MultiHoster class Premium4Me(MultiHoster): @@ -18,11 +17,12 @@ class Premium4Me(MultiHoster): return account_info def login(self, user, data, req): - self.authcode = req.load("http://premium.to/api/getauthcode.php?username=%s&password=%s" % (user, data["password"])).strip() - + self.authcode = req.load("http://premium.to/api/getauthcode.php?username=%s&password=%s" % ( + user, data["password"])).strip() + if "wrong username" in self.authcode: self.wrongPassword() def loadHosterList(self, req): page = req.load("http://premium.to/api/hosters.php?authcode=%s" % self.authcode) - return [x.strip() for x in page.replace("\"", "").split(";")] \ No newline at end of file + return [x.strip() for x in page.replace("\"", "").split(";")] -- cgit v1.2.3