diff options
| author | 2015-06-16 17:31:38 +0200 | |
|---|---|---|
| committer | 2015-06-24 22:40:32 +0200 | |
| commit | c1764e2fea0bb05164c83a876e8cd58b97f58f25 (patch) | |
| tree | be1af8dbf5542d93f1cb97f07dd1793fc7acc2df /module/plugins/accounts/SimplyPremiumCom.py | |
| parent | [SimpleHoster] fixurl (diff) | |
| download | pyload-c1764e2fea0bb05164c83a876e8cd58b97f58f25.tar.xz | |
Update all
Diffstat (limited to 'module/plugins/accounts/SimplyPremiumCom.py')
| -rw-r--r-- | module/plugins/accounts/SimplyPremiumCom.py | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/accounts/SimplyPremiumCom.py b/module/plugins/accounts/SimplyPremiumCom.py index 5c87cbbfb..053f2c33b 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 = req.load('http://www.simply-premium.com/api/user.php?format=json') +        json_data = self.load('http://www.simply-premium.com/api/user.php?format=json', req=req)          self.logDebug("JSON data: %s" % json_data) @@ -40,9 +40,8 @@ class SimplyPremiumCom(Account):      def login(self, user, data, req):          req.cj.setCookie("simply-premium.com", "lang", "EN") -        html = req.load("https://www.simply-premium.com/login.php", -                        post={'key': user} if not data['password'] else {'login_name': user, 'login_pass': data['password']}, -                        decode=True) +        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)          if 'logout' not in html:              self.wrongPassword()  | 
