summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/UnrestrictLi.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/UnrestrictLi.py
parent"New Year" Update: internal plugins (diff)
downloadpyload-36e60a23497ae05736c24fed2f4ce936fb61f744.tar.xz
"New Year" Update: account plugins
Diffstat (limited to 'module/plugins/accounts/UnrestrictLi.py')
-rw-r--r--module/plugins/accounts/UnrestrictLi.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/accounts/UnrestrictLi.py b/module/plugins/accounts/UnrestrictLi.py
index f5db3f888..6a8187234 100644
--- a/module/plugins/accounts/UnrestrictLi.py
+++ b/module/plugins/accounts/UnrestrictLi.py
@@ -7,7 +7,7 @@ from module.common.json_layer import json_loads
class UnrestrictLi(Account):
__name__ = "UnrestrictLi"
__type__ = "account"
- __version__ = "0.04"
+ __version__ = "0.05"
__description__ = """Unrestrict.li account plugin"""
__license__ = "GPLv3"
@@ -30,7 +30,7 @@ class UnrestrictLi(Account):
def login(self, user, data, req):
req.cj.setCookie("unrestrict.li", "lang", "EN")
- html = req.load("https://unrestrict.li/sign_in")
+ html = req.load("https://unrestrict.li/sign_in", decode=True)
if 'solvemedia' in html:
self.logError(_("A Captcha is required. Go to http://unrestrict.li/sign_in and login, then retry"))
@@ -38,7 +38,7 @@ class UnrestrictLi(Account):
post_data = {"username": user, "password": data['password'],
"remember_me": "remember", "signin": "Sign in"}
- html = req.load("https://unrestrict.li/sign_in", post=post_data)
+ html = req.load("https://unrestrict.li/sign_in", post=post_data, decode=True)
if 'sign_out' not in html:
self.wrongPassword()