summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RapiduNet.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/RapiduNet.py
parent[SimpleHoster] fixurl (diff)
downloadpyload-c1764e2fea0bb05164c83a876e8cd58b97f58f25.tar.xz
Update all
Diffstat (limited to 'module/plugins/accounts/RapiduNet.py')
-rw-r--r--module/plugins/accounts/RapiduNet.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/RapiduNet.py b/module/plugins/accounts/RapiduNet.py
index a158e9ce2..5e74e18bb 100644
--- a/module/plugins/accounts/RapiduNet.py
+++ b/module/plugins/accounts/RapiduNet.py
@@ -30,7 +30,7 @@ class RapiduNet(Account):
trafficleft = -1
premium = False
- html = req.load("https://rapidu.net/", decode=True)
+ html = self.load("https://rapidu.net/", req=req)
if re.search(self.PREMIUM_PATTERN, html):
premium = True
@@ -47,17 +47,17 @@ class RapiduNet(Account):
def login(self, user, data, req):
- req.load("https://rapidu.net/ajax.php",
+ self.load("https://rapidu.net/ajax.php",
get={'a': "getChangeLang"},
post={'_go' : "",
- 'lang': "en"})
+ 'lang': "en"}, req=req)
- json = json_loads(req.load("https://rapidu.net/ajax.php",
+ json = json_loads(self.load("https://rapidu.net/ajax.php",
get={'a': "getUserLogin"},
post={'_go' : "",
'login' : user,
'pass' : data['password'],
- 'remember': "1"}))
+ 'remember': "1"}, req=req))
self.logDebug(json)