diff options
-rw-r--r-- | pyload/plugins/accounts/UnrestrictLi.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pyload/plugins/accounts/UnrestrictLi.py b/pyload/plugins/accounts/UnrestrictLi.py index 2a284a179..9f7cec8f8 100644 --- a/pyload/plugins/accounts/UnrestrictLi.py +++ b/pyload/plugins/accounts/UnrestrictLi.py @@ -21,7 +21,7 @@ from pyload.utils import json_loads class UnrestrictLi(MultiHoster): __name__ = "UnrestrictLi" - __version__ = "0.02" + __version__ = "0.03" __type__ = "account" __config__ = [("activated", "bool", "Activated", "False"), ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"), @@ -47,14 +47,16 @@ class UnrestrictLi(MultiHoster): 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() |