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