summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/MultihostersCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/MultihostersCom.py')
-rw-r--r--module/plugins/hooks/MultihostersCom.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/module/plugins/hooks/MultihostersCom.py b/module/plugins/hooks/MultihostersCom.py
new file mode 100644
index 000000000..5ada3aa56
--- /dev/null
+++ b/module/plugins/hooks/MultihostersCom.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+
+from module.network.RequestFactory import getURL
+from module.plugins.internal.MultiHoster import MultiHoster
+
+class MultihostersCom(MultiHoster):
+ __name__ = "MultihostersCom"
+ __version__ = "0.01"
+ __type__ = "hook"
+ __config__ = [("activated", "bool", "Activated", False),
+ ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),
+ ("hosterList", "str", "Hoster list (comma separated)", ""),
+ ("unloadFailing", "bool", "Revert to standard download if download fails", False),
+ ("interval", "int", "Reload interval in hours (0 to disable)", 24)]
+
+ __description__ = """Multihosters.com hook plugin"""
+ __author_name__ = "tjeh"
+ __author_mail__ = "tjeh@gmx.net"
+
+ def getHoster(self):
+ page = getURL("http://www.multihosters.com/jDownloader.ashx?cmd=gethosters")
+ return [x.strip() for x in page.split(",")] \ No newline at end of file