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/UploadheroCom.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'module/plugins/accounts/UploadheroCom.py') diff --git a/module/plugins/accounts/UploadheroCom.py b/module/plugins/accounts/UploadheroCom.py index ffae50ce1..bb5eaa6c1 100644 --- a/module/plugins/accounts/UploadheroCom.py +++ b/module/plugins/accounts/UploadheroCom.py @@ -21,7 +21,7 @@ class UploadheroCom(Account): premium_pattern = re.compile('Il vous reste (\d+) jours premium') data = self.get_account_data(user) - html = self.load("http://uploadhero.co/my-account", req=req) + html = self.load("http://uploadhero.co/my-account") if premium_pattern.search(html): end_date = datetime.date.today() + datetime.timedelta(days=int(premium_pattern.search(html).group(1))) @@ -36,8 +36,7 @@ class UploadheroCom(Account): def login(self, user, data, req): html = self.load("http://uploadhero.co/lib/connexion.php", post={"pseudo_login": user, - "password_login": data['password']}, - req=req) + "password_login": data['password']}) if "mot de passe invalide" in html: self.wrong_password() -- cgit v1.2.3