diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-16 17:31:38 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-24 22:40:32 +0200 |
commit | c1764e2fea0bb05164c83a876e8cd58b97f58f25 (patch) | |
tree | be1af8dbf5542d93f1cb97f07dd1793fc7acc2df /module/plugins/accounts/UploadheroCom.py | |
parent | [SimpleHoster] fixurl (diff) | |
download | pyload-c1764e2fea0bb05164c83a876e8cd58b97f58f25.tar.xz |
Update all
Diffstat (limited to 'module/plugins/accounts/UploadheroCom.py')
-rw-r--r-- | module/plugins/accounts/UploadheroCom.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/accounts/UploadheroCom.py b/module/plugins/accounts/UploadheroCom.py index f8f2fbc1d..598b7ac57 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 <span class="bleu">(\d+)</span> jours premium') data = self.getAccountData(user) - html = req.load("http://uploadhero.co/my-account") + html = self.load("http://uploadhero.co/my-account", req=req) if premium_pattern.search(html): end_date = datetime.date.today() + datetime.timedelta(days=int(premium_pattern.search(html).group(1))) @@ -34,9 +34,8 @@ class UploadheroCom(Account): def login(self, user, data, req): - html = req.load("http://uploadhero.co/lib/connexion.php", - post={"pseudo_login": user, "password_login": data['password']}, - decode=True) + html = self.load("http://uploadhero.co/lib/connexion.php", + post={"pseudo_login": user, "password_login": data['password']}, req=req) if "mot de passe invalide" in html: self.wrongPassword() |