summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/PremiumizeMe.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/PremiumizeMe.py')
-rw-r--r--module/plugins/accounts/PremiumizeMe.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/PremiumizeMe.py b/module/plugins/accounts/PremiumizeMe.py
index 11a2c648f..19fce0e77 100644
--- a/module/plugins/accounts/PremiumizeMe.py
+++ b/module/plugins/accounts/PremiumizeMe.py
@@ -17,7 +17,7 @@ class PremiumizeMe(Account):
def parse_info(self, user, password, data, req):
#: Get user data from premiumize.me
- status = self.get_account_status(user, req)
+ status = self.get_account_status(user, password, req)
self.log_debug(status)
#: Parse account info
@@ -32,18 +32,18 @@ class PremiumizeMe(Account):
def login(self, user, password, data, req):
#: Get user data from premiumize.me
- status = self.get_account_status(user, req)
+ status = self.get_account_status(user, password, req)
#: Check if user and password are valid
if status['status'] != 200:
- self.fail()
+ self.login_fail()
- def get_account_status(self, user, req):
+ def get_account_status(self, user, password, req):
#: Use premiumize.me API v1 (see https://secure.premiumize.me/?show=api)
#: To retrieve account info and return the parsed json answer
answer = self.load("http://api.premiumize.me/pm-api/v1.php", #@TODO: Revert to `https` in 0.4.10
get={'method' : "accountstatus",
'params[login]': user,
- 'params[pass]' : self.get_data(user)['password']})
+ 'params[pass]' : password})
return json_loads(answer)