summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/TurbobitNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-08 23:31:33 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-08 23:31:33 +0100
commit36e60a23497ae05736c24fed2f4ce936fb61f744 (patch)
treed743ace8e6c032cccb524cbb8474263d9d7bd4e1 /module/plugins/accounts/TurbobitNet.py
parent"New Year" Update: internal plugins (diff)
downloadpyload-36e60a23497ae05736c24fed2f4ce936fb61f744.tar.xz
"New Year" Update: account plugins
Diffstat (limited to 'module/plugins/accounts/TurbobitNet.py')
-rw-r--r--module/plugins/accounts/TurbobitNet.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/module/plugins/accounts/TurbobitNet.py b/module/plugins/accounts/TurbobitNet.py
index f87d234a7..a857649eb 100644
--- a/module/plugins/accounts/TurbobitNet.py
+++ b/module/plugins/accounts/TurbobitNet.py
@@ -9,7 +9,7 @@ from module.plugins.Account import Account
class TurbobitNet(Account):
__name__ = "TurbobitNet"
__type__ = "account"
- __version__ = "0.01"
+ __version__ = "0.02"
__description__ = """TurbobitNet account plugin"""
__license__ = "GPLv3"
@@ -33,10 +33,11 @@ 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", post={
- "user[login]": user,
- "user[pass]": data['password'],
- "user[submit]": "Login"})
+ html = req.load("http://turbobit.net/user/login",
+ post={"user[login]": user,
+ "user[pass]": data['password'],
+ "user[submit]": "Login"},
+ decode=True)
if not '<div class="menu-item user-name">' in html:
self.wrongPassword()