diff options
author | 2015-07-17 15:29:48 +0200 | |
---|---|---|
committer | 2015-07-17 15:29:48 +0200 | |
commit | 1f5a55ae2133a782bdcca334ecbcdbde50dbcf99 (patch) | |
tree | 820ddb376ea97d4cf3aa53ef0f4dfb4ebfa4a0d5 /module/plugins/accounts/SimplyPremiumCom.py | |
parent | Spare fixes and code cosmetics (diff) | |
download | pyload-1f5a55ae2133a782bdcca334ecbcdbde50dbcf99.tar.xz |
No more need to use the req argument when call load method
Diffstat (limited to 'module/plugins/accounts/SimplyPremiumCom.py')
-rw-r--r-- | module/plugins/accounts/SimplyPremiumCom.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/accounts/SimplyPremiumCom.py b/module/plugins/accounts/SimplyPremiumCom.py index c9c6e2227..84b704f63 100644 --- a/module/plugins/accounts/SimplyPremiumCom.py +++ b/module/plugins/accounts/SimplyPremiumCom.py @@ -19,7 +19,7 @@ class SimplyPremiumCom(Account): validuntil = -1 trafficleft = None - json_data = self.load('http://www.simply-premium.com/api/user.php?format=json', req=req) + json_data = self.load('http://www.simply-premium.com/api/user.php?format=json') self.log_debug("JSON data: %s" % json_data) @@ -41,8 +41,7 @@ class SimplyPremiumCom(Account): 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']}, - req=req) + post={'key': user} if not data['password'] else {'login_name': user, 'login_pass': data['password']}) if 'logout' not in html: self.wrong_password() |