summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/PremiumToHook.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-08 10:15:40 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-08 10:15:40 +0200
commitaf68a12707d30d2c66f314517b2979bf9810d49e (patch)
tree6d35d005c0e61cda679cf676a1646e02cac36a1e /module/plugins/hooks/PremiumToHook.py
parentUpdate plugins (diff)
downloadpyload-af68a12707d30d2c66f314517b2979bf9810d49e.tar.xz
Fix https://github.com/pyload/pyload/issues/1459 (2)
Diffstat (limited to 'module/plugins/hooks/PremiumToHook.py')
-rw-r--r--module/plugins/hooks/PremiumToHook.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hooks/PremiumToHook.py b/module/plugins/hooks/PremiumToHook.py
index ef2a84223..11f0f3c8a 100644
--- a/module/plugins/hooks/PremiumToHook.py
+++ b/module/plugins/hooks/PremiumToHook.py
@@ -6,7 +6,7 @@ from module.plugins.internal.MultiHook import MultiHook
class PremiumToHook(MultiHook):
__name__ = "PremiumToHook"
__type__ = "hook"
- __version__ = "0.08"
+ __version__ = "0.09"
__config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
@@ -22,6 +22,7 @@ class PremiumToHook(MultiHook):
def getHosters(self):
+ user, data = self.account.selectAccount()
html = self.getURL("http://premium.to/api/hosters.php",
- get={'username': self.account.username, 'password': self.account.password})
+ get={'username': user, 'password': data['password']})
return [x.strip() for x in html.replace("\"", "").split(";")]