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/MegaRapidoNet.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'module/plugins/accounts/MegaRapidoNet.py') diff --git a/module/plugins/accounts/MegaRapidoNet.py b/module/plugins/accounts/MegaRapidoNet.py index aa92f957a..92e5242bb 100644 --- a/module/plugins/accounts/MegaRapidoNet.py +++ b/module/plugins/accounts/MegaRapidoNet.py @@ -25,7 +25,7 @@ class MegaRapidoNet(Account): trafficleft = None premium = False - html = self.load("http://megarapido.net/gerador", req=req) + html = self.load("http://megarapido.net/gerador") validuntil = re.search(self.VALID_UNTIL_PATTERN, html) if validuntil: @@ -40,13 +40,12 @@ class MegaRapidoNet(Account): def login(self, user, data, req): - self.load("http://megarapido.net/login", req=req) + self.load("http://megarapido.net/login") self.load("http://megarapido.net/painel_user/ajax/logar.php", post={'login': user, - 'senha': data['password']}, - req=req) + 'senha': data['password']}) - html = self.load("http://megarapido.net/gerador", req=req) + html = self.load("http://megarapido.net/gerador") if "sair" not in html.lower(): self.wrong_password() -- cgit v1.2.3