summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RapiduNet.py
diff options
context:
space:
mode:
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)