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/Keep2ShareCc.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/Keep2ShareCc.py')
-rw-r--r-- | module/plugins/accounts/Keep2ShareCc.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/accounts/Keep2ShareCc.py b/module/plugins/accounts/Keep2ShareCc.py index a7f8564d9..014d43a69 100644 --- a/module/plugins/accounts/Keep2ShareCc.py +++ b/module/plugins/accounts/Keep2ShareCc.py @@ -4,12 +4,13 @@ import re import time from module.plugins.internal.Account import Account +from module.plugins.internal.Plugin import set_cookie class Keep2ShareCc(Account): __name__ = "Keep2ShareCc" __type__ = "account" - __version__ = "0.07" + __version__ = "0.08" __status__ = "testing" __description__ = """Keep2Share.cc account plugin""" @@ -61,7 +62,7 @@ class Keep2ShareCc(Account): def login(self, user, password, data, req): - req.cj.setCookie("keep2share.cc", "lang", "en") + set_cookie(req.cj, "keep2share.cc", "lang", "en") html = self.load("https://keep2share.cc/login.html", post={'LoginForm[username]' : user, |