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.py30
1 files changed, 13 insertions, 17 deletions
diff --git a/module/plugins/hooks/MultihostersCom.py b/module/plugins/hooks/MultihostersCom.py
index 5ada3aa56..bf88cfae7 100644
--- a/module/plugins/hooks/MultihostersCom.py
+++ b/module/plugins/hooks/MultihostersCom.py
@@ -1,22 +1,18 @@
# -*- coding: utf-8 -*-
-from module.network.RequestFactory import getURL
-from module.plugins.internal.MultiHoster import MultiHoster
+from module.plugins.hooks.ZeveraCom import ZeveraCom
-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"
+class MultihostersCom(ZeveraCom):
+ __name__ = "MultihostersCom"
+ __type__ = "hook"
+ __version__ = "0.02"
+
+ __config__ = [("mode" , "all;listed;unlisted", "Use for plugins (if supported)" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
+ ("revertfailed", "bool" , "Revert to standard download if download fails", False),
+ ("interval" , "int" , "Reload interval in hours (0 to disable)" , 12 )]
- 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
+ __description__ = """Multihosters.com hook plugin"""
+ __license__ = "GPLv3"
+ __authors__ = [("tjeh", "tjeh@gmx.net")]