summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/TurbobitNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/TurbobitNet.py')
-rw-r--r--module/plugins/accounts/TurbobitNet.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/accounts/TurbobitNet.py b/module/plugins/accounts/TurbobitNet.py
index 43aaf6aa3..7e3bd628f 100644
--- a/module/plugins/accounts/TurbobitNet.py
+++ b/module/plugins/accounts/TurbobitNet.py
@@ -17,7 +17,7 @@ class TurbobitNet(Account):
def loadAccountInfo(self, user, req):
- html = req.load("http://turbobit.net")
+ html = self.load("http://turbobit.net", req=req)
m = re.search(r'<u>Turbo Access</u> to ([\d.]+)', html)
if m:
@@ -33,11 +33,10 @@ class TurbobitNet(Account):
def login(self, user, data, req):
req.cj.setCookie("turbobit.net", "user_lang", "en")
- html = req.load("http://turbobit.net/user/login",
+ html = self.load("http://turbobit.net/user/login",
post={"user[login]": user,
"user[pass]": data['password'],
- "user[submit]": "Login"},
- decode=True)
+ "user[submit]": "Login"}, req=req)
if not '<div class="menu-item user-name">' in html:
self.wrongPassword()