diff options
| author | 2015-08-03 00:37:57 +0200 | |
|---|---|---|
| committer | 2015-08-03 00:37:57 +0200 | |
| commit | e5ce0acf056dc96c40d5616ab6d2b82f998eefbe (patch) | |
| tree | 370f07d76bfbd7fa0ab3e7f973c1a516c944f7b5 /module/plugins/accounts/FastshareCz.py | |
| parent | Fix https://github.com/pyload/pyload/issues/1664 (diff) | |
| download | pyload-e5ce0acf056dc96c40d5616ab6d2b82f998eefbe.tar.xz | |
Use set_cookie instead cj.setCookie
Diffstat (limited to 'module/plugins/accounts/FastshareCz.py')
| -rw-r--r-- | module/plugins/accounts/FastshareCz.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/module/plugins/accounts/FastshareCz.py b/module/plugins/accounts/FastshareCz.py index 90b746624..3a3769a1c 100644 --- a/module/plugins/accounts/FastshareCz.py +++ b/module/plugins/accounts/FastshareCz.py @@ -3,12 +3,13 @@  import re  from module.plugins.internal.Account import Account +from module.plugins.internal.Plugin import set_cookie  class FastshareCz(Account):      __name__    = "FastshareCz"      __type__    = "account" -    __version__ = "0.08" +    __version__ = "0.09"      __status__  = "testing"      __description__ = """Fastshare.cz account plugin""" @@ -39,7 +40,7 @@ class FastshareCz(Account):      def login(self, user, password, data, req): -        req.cj.setCookie("fastshare.cz", "lang", "en") +        set_cookie(req.cj, "fastshare.cz", "lang", "en")          self.load('http://www.fastshare.cz/login')  #@NOTE: Do not remove or it will not login | 
