summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/SimplyPremiumCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-08-03 00:37:57 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-08-03 00:37:57 +0200
commite5ce0acf056dc96c40d5616ab6d2b82f998eefbe (patch)
tree370f07d76bfbd7fa0ab3e7f973c1a516c944f7b5 /module/plugins/accounts/SimplyPremiumCom.py
parentFix https://github.com/pyload/pyload/issues/1664 (diff)
downloadpyload-e5ce0acf056dc96c40d5616ab6d2b82f998eefbe.tar.xz
Use set_cookie instead cj.setCookie
Diffstat (limited to 'module/plugins/accounts/SimplyPremiumCom.py')
-rw-r--r--module/plugins/accounts/SimplyPremiumCom.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/accounts/SimplyPremiumCom.py b/module/plugins/accounts/SimplyPremiumCom.py
index f8b5ff50b..a5c69f51c 100644
--- a/module/plugins/accounts/SimplyPremiumCom.py
+++ b/module/plugins/accounts/SimplyPremiumCom.py
@@ -2,12 +2,13 @@
from module.common.json_layer import json_loads
from module.plugins.internal.Account import Account
+from module.plugins.internal.Plugin import set_cookie
class SimplyPremiumCom(Account):
__name__ = "SimplyPremiumCom"
__type__ = "account"
- __version__ = "0.07"
+ __version__ = "0.08"
__status__ = "testing"
__description__ = """Simply-Premium.com account plugin"""
@@ -39,7 +40,7 @@ class SimplyPremiumCom(Account):
def login(self, user, password, data, req):
- req.cj.setCookie("simply-premium.com", "lang", "EN")
+ set_cookie(req.cj, "simply-premium.com", "lang", "EN")
html = self.load("https://www.simply-premium.com/login.php",
post={'key': user} if not password else {'login_name': user, 'login_pass': password})