summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/PremiumizeMeHook.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/PremiumizeMeHook.py')
-rw-r--r--module/plugins/hooks/PremiumizeMeHook.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hooks/PremiumizeMeHook.py b/module/plugins/hooks/PremiumizeMeHook.py
index bc803b1f5..615c6c2d8 100644
--- a/module/plugins/hooks/PremiumizeMeHook.py
+++ b/module/plugins/hooks/PremiumizeMeHook.py
@@ -21,18 +21,18 @@ class PremiumizeMeHook(MultiHook):
def getHosters(self):
- # Get account data
+ #: Get account data
user, data = self.account.selectAccount()
- # 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 = self.load("http://api.premiumize.me/pm-api/v1.php", #@TODO: Revert to `https` in 0.4.10
get={'method': "hosterlist", 'params[login]': user, 'params[pass]': data['password']})
data = json_loads(answer)
- # If account is not valid thera are no hosters available
+ #: If account is not valid thera are no hosters available
if data['status'] != 200:
return []
- # Extract hosters from json file
+ #: Extract hosters from json file
return data['result']['hosterlist']