diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-08-03 00:37:57 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-08-03 00:37:57 +0200 |
commit | e5ce0acf056dc96c40d5616ab6d2b82f998eefbe (patch) | |
tree | 370f07d76bfbd7fa0ab3e7f973c1a516c944f7b5 /module/plugins/accounts/FourSharedCom.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/FourSharedCom.py')
-rw-r--r-- | module/plugins/accounts/FourSharedCom.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/accounts/FourSharedCom.py b/module/plugins/accounts/FourSharedCom.py index ef2140359..a7ec8e2c5 100644 --- a/module/plugins/accounts/FourSharedCom.py +++ b/module/plugins/accounts/FourSharedCom.py @@ -1,12 +1,13 @@ # -*- coding: utf-8 -*- from module.plugins.internal.Account import Account +from module.plugins.internal.Plugin import set_cookie class FourSharedCom(Account): __name__ = "FourSharedCom" __type__ = "account" - __version__ = "0.06" + __version__ = "0.07" __status__ = "testing" __description__ = """FourShared.com account plugin""" @@ -21,7 +22,7 @@ class FourSharedCom(Account): def login(self, user, password, data, req): - req.cj.setCookie("4shared.com", "4langcookie", "en") + set_cookie(req.cj, "4shared.com", "4langcookie", "en") res = self.load("https://www.4shared.com/web/login", post={'login' : user, |