summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/PremiumizeMeHook.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-08-02 07:12:26 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-08-02 07:12:26 +0200
commit53784948a3ae27ed69463eea2d7babb979460e1e (patch)
treedaa3790d82436b990047619b8be743015cfafcc0 /module/plugins/hooks/PremiumizeMeHook.py
parentFix https://github.com/pyload/pyload/issues/1640 (diff)
downloadpyload-53784948a3ae27ed69463eea2d7babb979460e1e.tar.xz
Fix https://github.com/pyload/pyload/issues/1646
Diffstat (limited to 'module/plugins/hooks/PremiumizeMeHook.py')
-rw-r--r--module/plugins/hooks/PremiumizeMeHook.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/module/plugins/hooks/PremiumizeMeHook.py b/module/plugins/hooks/PremiumizeMeHook.py
index 6be32b70b..9a9a380af 100644
--- a/module/plugins/hooks/PremiumizeMeHook.py
+++ b/module/plugins/hooks/PremiumizeMeHook.py
@@ -7,7 +7,7 @@ from module.plugins.internal.MultiHook import MultiHook
class PremiumizeMeHook(MultiHook):
__name__ = "PremiumizeMeHook"
__type__ = "hook"
- __version__ = "0.19"
+ __version__ = "0.20"
__status__ = "testing"
__config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
@@ -22,12 +22,14 @@ class PremiumizeMeHook(MultiHook):
def get_hosters(self):
#: Get account data
- user, data = self.account.select()
+ user, info = self.account.select()
#: 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']})
+ get={'method' : "hosterlist",
+ 'params[login]': user,
+ 'params[pass]' : info['login']['password']})
data = json_loads(answer)
#: If account is not valid thera are no hosters available