summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/UploadableCh.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 04:59:27 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 04:59:27 +0200
commit8f17f875f6e28f73ddb10da59c6464bd04922222 (patch)
tree29631cd1f81a40283c71dfdd005b9d24370d5d7f /module/plugins/accounts/UploadableCh.py
parentFix typo (diff)
downloadpyload-8f17f875f6e28f73ddb10da59c6464bd04922222.tar.xz
Account rewritten
Diffstat (limited to 'module/plugins/accounts/UploadableCh.py')
-rw-r--r--module/plugins/accounts/UploadableCh.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/UploadableCh.py b/module/plugins/accounts/UploadableCh.py
index aeb3a241d..e1865bb52 100644
--- a/module/plugins/accounts/UploadableCh.py
+++ b/module/plugins/accounts/UploadableCh.py
@@ -14,7 +14,7 @@ class UploadableCh(Account):
__authors__ = [("Sasch", "gsasch@gmail.com")]
- def load_account_info(self, user, req):
+ def parse_info(self, user, password, data, req):
html = self.load("http://www.uploadable.ch/login.php")
premium = '<a href="/logout.php"' in html
@@ -23,12 +23,12 @@ class UploadableCh(Account):
return {'validuntil': None, 'trafficleft': trafficleft, 'premium': premium} #@TODO: validuntil
- def login(self, user, data, req):
+ def login(self, user, password, data, req):
html = self.load("http://www.uploadable.ch/login.php",
post={'userName' : user,
- 'userPassword' : data['password'],
+ 'userPassword' : password,
'autoLogin' : "1",
'action__login': "normalLogin"})
if "Login failed" in html:
- self.wrong_password()
+ self.fail()