diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-27 21:20:59 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-27 21:20:59 +0100 |
commit | 575ce629081995766a231f0a9f3e97e3b79d23b1 (patch) | |
tree | 94066e87d5af5b9b1a11012eee11fcaf78bf8c68 /module/plugins/hooks/DebridItaliaCom.py | |
parent | [MultiHook] Crypter support (diff) | |
download | pyload-575ce629081995766a231f0a9f3e97e3b79d23b1.tar.xz |
Update MultiHook based hooks
Diffstat (limited to 'module/plugins/hooks/DebridItaliaCom.py')
-rw-r--r-- | module/plugins/hooks/DebridItaliaCom.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/module/plugins/hooks/DebridItaliaCom.py b/module/plugins/hooks/DebridItaliaCom.py index e31bc98d7..d18be5384 100644 --- a/module/plugins/hooks/DebridItaliaCom.py +++ b/module/plugins/hooks/DebridItaliaCom.py @@ -2,18 +2,17 @@ import re -from module.network.RequestFactory import getURL from module.plugins.internal.MultiHook import MultiHook class DebridItaliaCom(MultiHook): __name__ = "DebridItaliaCom" __type__ = "hook" - __version__ = "0.10" + __version__ = "0.11" - __config__ = [("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), + __config__ = [("mode", "all;listed;unlisted", "Use for hosters (if supported)", "all"), + ("pluginlist", "str", "Hoster list (comma separated)", ""), + ("revertfailed", "bool", "Revert to standard download if download fails", False), ("interval", "int", "Reload interval in hours (0 to disable)", 24)] __description__ = """Debriditalia.com hook plugin""" @@ -22,5 +21,5 @@ class DebridItaliaCom(MultiHook): ("Walter Purcaro", "vuolter@gmail.com")] - def getHoster(self): - return getURL("http://debriditalia.com/api.php", get={'hosts': ""}).replace('"', '').split(',') + def getHosters(self): + return self.getURL("http://debriditalia.com/api.php", get={'hosts': ""}).replace('"', '').split(',') |