summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/UploadingCom.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/UploadingCom.py
parentFix typo (diff)
downloadpyload-8f17f875f6e28f73ddb10da59c6464bd04922222.tar.xz
Account rewritten
Diffstat (limited to 'module/plugins/accounts/UploadingCom.py')
-rw-r--r--module/plugins/accounts/UploadingCom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/accounts/UploadingCom.py b/module/plugins/accounts/UploadingCom.py
index d0c497d21..d269abde7 100644
--- a/module/plugins/accounts/UploadingCom.py
+++ b/module/plugins/accounts/UploadingCom.py
@@ -22,7 +22,7 @@ class UploadingCom(Account):
VALID_UNTIL_PATTERN = r'Valid Until:(.+?)<'
- def load_account_info(self, user, req):
+ def parse_info(self, user, password, data, req):
validuntil = None
trafficleft = None
premium = None
@@ -54,7 +54,7 @@ class UploadingCom(Account):
'premium' : premium}
- def login(self, user, data, req):
+ def login(self, user, password, data, req):
set_cookies(req.cj,
[("uploading.com", "lang" , "1" ),
("uploading.com", "language", "1" ),
@@ -64,5 +64,5 @@ class UploadingCom(Account):
self.load("http://uploading.com/")
self.load("https://uploading.com/general/login_form/?JsHttpRequest=%s-xml" % long(time.time() * 1000),
post={'email' : user,
- 'password': data['password'],
+ 'password': password,
'remember': "on"})