diff options
author | 2015-07-17 15:29:48 +0200 | |
---|---|---|
committer | 2015-07-17 15:29:48 +0200 | |
commit | 1f5a55ae2133a782bdcca334ecbcdbde50dbcf99 (patch) | |
tree | 820ddb376ea97d4cf3aa53ef0f4dfb4ebfa4a0d5 /module/plugins/accounts/MultishareCz.py | |
parent | Spare fixes and code cosmetics (diff) | |
download | pyload-1f5a55ae2133a782bdcca334ecbcdbde50dbcf99.tar.xz |
No more need to use the req argument when call load method
Diffstat (limited to 'module/plugins/accounts/MultishareCz.py')
-rw-r--r-- | module/plugins/accounts/MultishareCz.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/accounts/MultishareCz.py b/module/plugins/accounts/MultishareCz.py index 7052f2d7a..0c78a6707 100644 --- a/module/plugins/accounts/MultishareCz.py +++ b/module/plugins/accounts/MultishareCz.py @@ -21,13 +21,13 @@ class MultishareCz(Account): def load_account_info(self, user, req): # self.relogin(user) - html = self.load("http://www.multishare.cz/profil/", req=req) + html = self.load("http://www.multishare.cz/profil/") m = re.search(self.TRAFFIC_LEFT_PATTERN, html) trafficleft = self.parse_traffic(m.group('S') + m.group('U')) if m else 0 self.premium = True if trafficleft else False - html = self.load("http://www.multishare.cz/", req=req) + html = self.load("http://www.multishare.cz/") mms_info = dict(re.findall(self.ACCOUNT_INFO_PATTERN, html)) return dict(mms_info, **{"validuntil": -1, "trafficleft": trafficleft}) @@ -37,8 +37,7 @@ class MultishareCz(Account): html = self.load('https://www.multishare.cz/html/prihlaseni_process.php', post={"akce" : "Přihlásit", "heslo": data['password'], - "jmeno": user}, - req=req) + "jmeno": user}) if '<div class="akce-chyba akce">' in html: self.wrong_password() |