summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/RehostTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-27 21:20:59 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-27 21:20:59 +0100
commit575ce629081995766a231f0a9f3e97e3b79d23b1 (patch)
tree94066e87d5af5b9b1a11012eee11fcaf78bf8c68 /module/plugins/hooks/RehostTo.py
parent[MultiHook] Crypter support (diff)
downloadpyload-575ce629081995766a231f0a9f3e97e3b79d23b1.tar.xz
Update MultiHook based hooks
Diffstat (limited to 'module/plugins/hooks/RehostTo.py')
-rw-r--r--module/plugins/hooks/RehostTo.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/module/plugins/hooks/RehostTo.py b/module/plugins/hooks/RehostTo.py
index 48afa2342..207449e6a 100644
--- a/module/plugins/hooks/RehostTo.py
+++ b/module/plugins/hooks/RehostTo.py
@@ -1,17 +1,16 @@
# -*- coding: utf-8 -*-
-from module.network.RequestFactory import getURL
from module.plugins.internal.MultiHook import MultiHook
class RehostTo(MultiHook):
__name__ = "RehostTo"
__type__ = "hook"
- __version__ = "0.44"
+ __version__ = "0.45"
- __config__ = [("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),
- ("hosterList", "str", "Hoster list (comma separated)", ""),
- ("unloadFailing", "bool", "Revert to stanard download if download fails", False),
+ __config__ = [("mode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),
+ ("pluginlist", "str", "Hoster list (comma separated)", ""),
+ ("revertfailed", "bool", "Revert to stanard download if download fails", False),
("interval", "int", "Reload interval in hours (0 to disable)", 24)]
__description__ = """Rehost.to hook plugin"""
@@ -19,8 +18,8 @@ class RehostTo(MultiHook):
__authors__ = [("RaNaN", "RaNaN@pyload.org")]
- def getHoster(self):
- page = getURL("http://rehost.to/api.php",
+ def getHosters(self):
+ page = self.getURL("http://rehost.to/api.php",
get={'cmd': "get_supported_och_dl", 'long_ses': self.long_ses})
return [x.strip() for x in page.replace("\"", "").split(",")]