summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/FreeWayMeHook.py9
-rw-r--r--module/plugins/hooks/PremiumToHook.py7
-rw-r--r--module/plugins/hooks/RPNetBizHook.py8
3 files changed, 15 insertions, 9 deletions
diff --git a/module/plugins/hooks/FreeWayMeHook.py b/module/plugins/hooks/FreeWayMeHook.py
index 5f30d70fc..1380433bf 100644
--- a/module/plugins/hooks/FreeWayMeHook.py
+++ b/module/plugins/hooks/FreeWayMeHook.py
@@ -6,7 +6,7 @@ from module.plugins.internal.MultiHook import MultiHook
class FreeWayMeHook(MultiHook):
__name__ = "FreeWayMeHook"
__type__ = "hook"
- __version__ = "0.17"
+ __version__ = "0.18"
__status__ = "testing"
__config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
@@ -20,6 +20,9 @@ class FreeWayMeHook(MultiHook):
def get_hosters(self):
- user, data = self.account.select()
- hostis = self.load("http://www.free-way.bz/ajax/jd.php", get={'id': 3, 'user': user, 'pass': data['password']}).replace("\"", "") #@TODO: Revert to `https` in 0.4.10
+ user, info = self.account.select()
+ hostis = self.load("http://www.free-way.bz/ajax/jd.php",
+ get={'id' : 3,
+ 'user': user,
+ 'pass': info['login']['password']}).replace("\"", "") #@TODO: Revert to `https` in 0.4.10
return [x.strip() for x in hostis.split(",") if x.strip()]
diff --git a/module/plugins/hooks/PremiumToHook.py b/module/plugins/hooks/PremiumToHook.py
index 062113e96..bcd7a7aab 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.10"
+ __version__ = "0.11"
__status__ = "testing"
__config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
@@ -22,7 +22,8 @@ class PremiumToHook(MultiHook):
def get_hosters(self):
- user, data = self.account.select()
+ user, info = self.account.select()
html = self.load("http://premium.to/api/hosters.php",
- get={'username': user, 'password': data['password']})
+ get={'username': user,
+ 'password': info['login']['password']})
return [x.strip() for x in html.replace("\"", "").split(";")]
diff --git a/module/plugins/hooks/RPNetBizHook.py b/module/plugins/hooks/RPNetBizHook.py
index 5e7174de6..5d26b7f09 100644
--- a/module/plugins/hooks/RPNetBizHook.py
+++ b/module/plugins/hooks/RPNetBizHook.py
@@ -7,7 +7,7 @@ from module.plugins.internal.MultiHook import MultiHook
class RPNetBizHook(MultiHook):
__name__ = "RPNetBizHook"
__type__ = "hook"
- __version__ = "0.15"
+ __version__ = "0.16"
__status__ = "testing"
__config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
@@ -22,10 +22,12 @@ class RPNetBizHook(MultiHook):
def get_hosters(self):
#: Get account data
- user, data = self.account.select()
+ user, info = self.account.select()
res = self.load("https://premium.rpnet.biz/client_api.php",
- get={'username': user, 'password': data['password'], 'action': "showHosterList"})
+ get={'username': user,
+ 'password': info['login']['password'],
+ 'action' : "showHosterList"})
hoster_list = json_loads(res)
#: If account is not valid thera are no hosters available