summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/UploadableCh.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/UploadableCh.py
parent[SimpleHoster] fixurl (diff)
downloadpyload-c1764e2fea0bb05164c83a876e8cd58b97f58f25.tar.xz
Update all
Diffstat (limited to 'module/plugins/accounts/UploadableCh.py')
-rw-r--r--module/plugins/accounts/UploadableCh.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/accounts/UploadableCh.py b/module/plugins/accounts/UploadableCh.py
index 9543feb6d..b0def5600 100644
--- a/module/plugins/accounts/UploadableCh.py
+++ b/module/plugins/accounts/UploadableCh.py
@@ -14,7 +14,7 @@ class UploadableCh(Account):
def loadAccountInfo(self, user, req):
- html = req.load("http://www.uploadable.ch/login.php")
+ html = self.load("http://www.uploadable.ch/login.php", req=req)
premium = '<a href="/logout.php"' in html
trafficleft = -1 if premium else None
@@ -23,12 +23,11 @@ class UploadableCh(Account):
def login(self, user, data, req):
- html = req.load("http://www.uploadable.ch/login.php",
+ html = self.load("http://www.uploadable.ch/login.php",
post={'userName' : user,
'userPassword' : data["password"],
'autoLogin' : "1",
- 'action__login': "normalLogin"},
- decode=True)
+ 'action__login': "normalLogin"}, req=req)
if "Login failed" in html:
self.wrongPassword()