summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/SimplyPremiumCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 04:59:27 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 04:59:27 +0200
commit8f17f875f6e28f73ddb10da59c6464bd04922222 (patch)
tree29631cd1f81a40283c71dfdd005b9d24370d5d7f /module/plugins/accounts/SimplyPremiumCom.py
parentFix typo (diff)
downloadpyload-8f17f875f6e28f73ddb10da59c6464bd04922222.tar.xz
Account rewritten
Diffstat (limited to 'module/plugins/accounts/SimplyPremiumCom.py')
-rw-r--r--module/plugins/accounts/SimplyPremiumCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/SimplyPremiumCom.py b/module/plugins/accounts/SimplyPremiumCom.py
index 1486578a3..534a75be8 100644
--- a/module/plugins/accounts/SimplyPremiumCom.py
+++ b/module/plugins/accounts/SimplyPremiumCom.py
@@ -15,7 +15,7 @@ class SimplyPremiumCom(Account):
__authors__ = [("EvolutionClip", "evolutionclip@live.de")]
- def load_account_info(self, user, req):
+ def parse_info(self, user, password, data, req):
premium = False
validuntil = -1
trafficleft = None
@@ -38,11 +38,11 @@ class SimplyPremiumCom(Account):
return {'premium': premium, 'validuntil': validuntil, 'trafficleft': trafficleft}
- def login(self, user, data, req):
+ def login(self, user, password, data, req):
req.cj.setCookie("simply-premium.com", "lang", "EN")
html = self.load("https://www.simply-premium.com/login.php",
- post={'key': user} if not data['password'] else {'login_name': user, 'login_pass': data['password']})
+ post={'key': user} if not password else {'login_name': user, 'login_pass': password})
if 'logout' not in html:
- self.wrong_password()
+ self.fail()