diff options
| author | 2013-08-20 23:20:10 +0200 | |
|---|---|---|
| committer | 2013-08-20 23:27:29 +0200 | |
| commit | 902e562d97c60fe5af90592d6464f092f6cf7c01 (patch) | |
| tree | 16ecb3d8b76fa6076f89f9fe17dd20c131f7d98b /pyload/plugins | |
| parent | LetitbitNet: implemented premium mode (diff) | |
| download | pyload-902e562d97c60fe5af90592d6464f092f6cf7c01.tar.xz | |
UnrestrictLi: Using the remember me function
to avoid troubles after IP address change
(cherry picked from commit f0f014674da3495391fccb7c49d00b971aafddc7)
Diffstat (limited to 'pyload/plugins')
| -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() | 
