summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/PremiumizeMe.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/PremiumizeMe.py
parentFix typo (diff)
downloadpyload-8f17f875f6e28f73ddb10da59c6464bd04922222.tar.xz
Account rewritten
Diffstat (limited to 'module/plugins/accounts/PremiumizeMe.py')
-rw-r--r--module/plugins/accounts/PremiumizeMe.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/PremiumizeMe.py b/module/plugins/accounts/PremiumizeMe.py
index f2b304b69..11a2c648f 100644
--- a/module/plugins/accounts/PremiumizeMe.py
+++ b/module/plugins/accounts/PremiumizeMe.py
@@ -15,7 +15,7 @@ class PremiumizeMe(Account):
__authors__ = [("Florian Franzen", "FlorianFranzen@gmail.com")]
- def load_account_info(self, user, req):
+ def parse_info(self, user, password, data, req):
#: Get user data from premiumize.me
status = self.get_account_status(user, req)
self.log_debug(status)
@@ -30,13 +30,13 @@ class PremiumizeMe(Account):
return account_info
- def login(self, user, data, req):
+ def login(self, user, password, data, req):
#: Get user data from premiumize.me
status = self.get_account_status(user, req)
#: Check if user and password are valid
if status['status'] != 200:
- self.wrong_password()
+ self.fail()
def get_account_status(self, user, req):
@@ -45,5 +45,5 @@ class PremiumizeMe(Account):
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_account_data(user)['password']})
+ 'params[pass]' : self.get_data(user)['password']})
return json_loads(answer)