summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/UploadedTo.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/UploadedTo.py
parent[SimpleHoster] fixurl (diff)
downloadpyload-c1764e2fea0bb05164c83a876e8cd58b97f58f25.tar.xz
Update all
Diffstat (limited to 'module/plugins/accounts/UploadedTo.py')
-rw-r--r--module/plugins/accounts/UploadedTo.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/accounts/UploadedTo.py b/module/plugins/accounts/UploadedTo.py
index dc4c9fb73..8cdfab0c6 100644
--- a/module/plugins/accounts/UploadedTo.py
+++ b/module/plugins/accounts/UploadedTo.py
@@ -26,7 +26,7 @@ class UploadedTo(Account):
trafficleft = None
premium = None
- html = req.load("http://uploaded.net/me")
+ html = self.load("http://uploaded.net/me", req=req)
premium = True if re.search(self.PREMIUM_PATTERN, html) else False
@@ -63,9 +63,8 @@ class UploadedTo(Account):
def login(self, user, data, req):
# req.cj.setCookie("uploaded.net", "lang", "en")
- html = req.load("https://uploaded.net/io/login",
- post={'id': user, 'pw': data['password'], '_': ""},
- decode=True)
+ html = self.load("https://uploaded.net/io/login",
+ post={'id': user, 'pw': data['password'], '_': ""}, req=req)
if '"err"' in html:
self.wrongPassword()