summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/accounts/PremiumizeMe.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/accounts/PremiumizeMe.py')
-rw-r--r--pyload/plugins/accounts/PremiumizeMe.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/pyload/plugins/accounts/PremiumizeMe.py b/pyload/plugins/accounts/PremiumizeMe.py
index e8c2d277f..02faf0e75 100644
--- a/pyload/plugins/accounts/PremiumizeMe.py
+++ b/pyload/plugins/accounts/PremiumizeMe.py
@@ -7,12 +7,10 @@ class PremiumizeMe(MultiHoster):
__version__ = "0.11"
__type__ = "account"
__description__ = """Premiumize.Me account plugin"""
-
__author_name__ = ("Florian Franzen")
__author_mail__ = ("FlorianFranzen@gmail.com")
def loadAccountInfo(self, user, req):
-
# Get user data from premiumize.me
status = self.getAccountStatus(user, req)
self.logDebug(status)
@@ -27,7 +25,6 @@ class PremiumizeMe(MultiHoster):
return account_info
def login(self, user, data, req):
-
# Get user data from premiumize.me
status = self.getAccountStatus(user, req)
@@ -35,19 +32,18 @@ class PremiumizeMe(MultiHoster):
if status['status'] != 200:
self.wrongPassword()
-
def getAccountStatus(self, user, req):
-
- # Use premiumize.me API v1 (see https://secure.premiumize.me/?show=api) to retrieve account info and return the parsed json answer
+ # Use premiumize.me API v1 (see https://secure.premiumize.me/?show=api)
+ # to retrieve account info and return the parsed json answer
answer = req.load(
"https://api.premiumize.me/pm-api/v1.php?method=accountstatus&params[login]=%s&params[pass]=%s" % (
- user, self.password))
+ user, self.accounts[user]['password']))
return json_loads(answer)
def loadHosterList(self, req):
-
- # Get supported hosters list from premiumize.me using the json API v1 (see https://secure.premiumize.me/?show=api)
+ # Get supported hosters list from premiumize.me using the
+ # json API v1 (see https://secure.premiumize.me/?show=api)
answer = req.load(
"https://api.premiumize.me/pm-api/v1.php?method=hosterlist&params[login]=%s&params[pass]=%s" % (
self.loginname, self.password))