summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/MultishareCz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-16 17:31:38 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-24 22:40:32 +0200
commitc1764e2fea0bb05164c83a876e8cd58b97f58f25 (patch)
treebe1af8dbf5542d93f1cb97f07dd1793fc7acc2df /module/plugins/accounts/MultishareCz.py
parent[SimpleHoster] fixurl (diff)
downloadpyload-c1764e2fea0bb05164c83a876e8cd58b97f58f25.tar.xz
Update all
Diffstat (limited to 'module/plugins/accounts/MultishareCz.py')
-rw-r--r--module/plugins/accounts/MultishareCz.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/accounts/MultishareCz.py b/module/plugins/accounts/MultishareCz.py
index df498e6a6..be947f7f2 100644
--- a/module/plugins/accounts/MultishareCz.py
+++ b/module/plugins/accounts/MultishareCz.py
@@ -21,24 +21,23 @@ class MultishareCz(Account):
def loadAccountInfo(self, user, req):
#self.relogin(user)
- html = req.load("http://www.multishare.cz/profil/", decode=True)
+ html = self.load("http://www.multishare.cz/profil/", req=req)
m = re.search(self.TRAFFIC_LEFT_PATTERN, html)
trafficleft = self.parseTraffic(m.group('S') + m.group('U')) if m else 0
self.premium = True if trafficleft else False
- html = req.load("http://www.multishare.cz/", decode=True)
+ html = self.load("http://www.multishare.cz/", req=req)
mms_info = dict(re.findall(self.ACCOUNT_INFO_PATTERN, html))
return dict(mms_info, **{"validuntil": -1, "trafficleft": trafficleft})
def login(self, user, data, req):
- html = req.load('https://www.multishare.cz/html/prihlaseni_process.php',
+ html = self.load('https://www.multishare.cz/html/prihlaseni_process.php',
post={"akce" : "Přihlásit",
"heslo": data['password'],
- "jmeno": user},
- decode=True)
+ "jmeno": user}, req=req)
if '<div class="akce-chyba akce">' in html:
self.wrongPassword()