summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/UnrestrictLi.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-08-20 23:20:10 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-08-20 23:20:10 +0200
commitf0f014674da3495391fccb7c49d00b971aafddc7 (patch)
treebaf44c78d4c2d62534d797a7257d317440884a82 /module/plugins/accounts/UnrestrictLi.py
parentLetitbitNet: implemented premium mode (diff)
downloadpyload-f0f014674da3495391fccb7c49d00b971aafddc7.tar.xz
UnrestrictLi: Using the remember me function
to avoid troubles after IP address change
Diffstat (limited to 'module/plugins/accounts/UnrestrictLi.py')
-rw-r--r--module/plugins/accounts/UnrestrictLi.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/module/plugins/accounts/UnrestrictLi.py b/module/plugins/accounts/UnrestrictLi.py
index 9ec2ea996..58fb0f7e5 100644
--- a/module/plugins/accounts/UnrestrictLi.py
+++ b/module/plugins/accounts/UnrestrictLi.py
@@ -21,7 +21,7 @@ from module.common.json_layer import json_loads
class UnrestrictLi(Account):
__name__ = "UnrestrictLi"
- __version__ = "0.02"
+ __version__ = "0.03"
__type__ = "account"
__description__ = """Unrestrict.li account plugin"""
__author_name__ = ("stickell")
@@ -41,14 +41,16 @@ class UnrestrictLi(Account):
return {"premium": True, "validuntil": validuntil, "trafficleft": trafficleft}
def login(self, user, data, req):
+ req.cj.setCookie("unrestrict.li", "lang", "EN")
html = req.load("https://unrestrict.li/sign_in")
if 'solvemedia' in html:
self.logError("A Captcha is required. Go to http://unrestrict.li/sign_in and login, then retry")
return
- self.html = req.load("https://unrestrict.li/sign_in",
- post={"username": user, "password": data["password"], "signin": "Sign in"})
+ post_data = {"username": user, "password": data["password"],
+ "remember_me": "remember", "signin": "Sign in"}
+ self.html = req.load("https://unrestrict.li/sign_in", post=post_data)
if 'sign_out' not in self.html:
self.wrongPassword()