diff options
author | tjeh <tjeh@gmx.net> | 2014-07-20 21:49:27 +0200 |
---|---|---|
committer | tjeh <tjeh@gmx.net> | 2014-07-20 22:03:50 +0200 |
commit | 36b5bfedc2e57bd000831559ca8fb4d7e7899e24 (patch) | |
tree | affca5d195025a1c2d3fcc8ddb8af7d6c5c2745f /module/plugins/hooks | |
parent | Store all re.search/match object as "m" instead "found" (diff) | |
download | pyload-36b5bfedc2e57bd000831559ca8fb4d7e7899e24.tar.xz |
Added support for Multihosters.com multihoster.
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r-- | module/plugins/hooks/MultihostersCom.py | 22 |
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 |