From 1f5a55ae2133a782bdcca334ecbcdbde50dbcf99 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 17 Jul 2015 15:29:48 +0200 Subject: No more need to use the req argument when call load method --- module/plugins/accounts/AlldebridCom.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'module/plugins/accounts/AlldebridCom.py') diff --git a/module/plugins/accounts/AlldebridCom.py b/module/plugins/accounts/AlldebridCom.py index f73c3e0fd..903499d5b 100644 --- a/module/plugins/accounts/AlldebridCom.py +++ b/module/plugins/accounts/AlldebridCom.py @@ -21,7 +21,7 @@ class AlldebridCom(Account): def load_account_info(self, user, req): data = self.get_account_data(user) - html = self.load("http://www.alldebrid.com/account/", req=req) + html = self.load("http://www.alldebrid.com/account/") soup = BeautifulSoup(html) # Try to parse expiration date directly from the control panel page (better accuracy) @@ -41,8 +41,7 @@ class AlldebridCom(Account): html = self.load("https://www.alldebrid.com/api.php", get={'action': "info_user", 'login' : user, - 'pw' : data['password']}, - req=req) + 'pw' : data['password']}) self.log_debug(html) @@ -58,8 +57,7 @@ class AlldebridCom(Account): html = self.load("https://www.alldebrid.com/register/", get={'action' : "login", 'login_login' : user, - 'login_password': data['password']}, - req=req) + 'login_password': data['password']}) if "This login doesn't exist" in html \ or "The password is not valid" in html \ -- cgit v1.2.3