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/internal/XFSAccount.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/internal') diff --git a/module/plugins/internal/XFSAccount.py b/module/plugins/internal/XFSAccount.py index 23759f6d3..4005b8e21 100644 --- a/module/plugins/internal/XFSAccount.py +++ b/module/plugins/internal/XFSAccount.py @@ -64,7 +64,7 @@ class XFSAccount(Account): 'leechtraffic': leechtraffic, 'premium' : premium} - html = self.load(self.HOSTER_URL, get={'op': "my_account"}, req=req) + html = self.load(self.HOSTER_URL, get={'op': "my_account"}) premium = True if re.search(self.PREMIUM_PATTERN, html) else False @@ -155,7 +155,7 @@ class XFSAccount(Account): if not self.LOGIN_URL: self.LOGIN_URL = urlparse.urljoin(self.HOSTER_URL, "login.html") - html = self.load(self.LOGIN_URL, req=req) + html = self.load(self.LOGIN_URL) action, inputs = parse_html_form('name="FL"', html) if not inputs: @@ -170,7 +170,7 @@ class XFSAccount(Account): else: url = self.HOSTER_URL - html = self.load(url, post=inputs, req=req) + html = self.load(url, post=inputs) if re.search(self.LOGIN_FAIL_PATTERN, html): self.wrong_password() -- cgit v1.2.3