diff options
| author | 2014-12-27 21:20:59 +0100 | |
|---|---|---|
| committer | 2014-12-27 21:20:59 +0100 | |
| commit | 575ce629081995766a231f0a9f3e97e3b79d23b1 (patch) | |
| tree | 94066e87d5af5b9b1a11012eee11fcaf78bf8c68 /module/plugins/hooks/AlldebridCom.py | |
| parent | [MultiHook] Crypter support (diff) | |
| download | pyload-575ce629081995766a231f0a9f3e97e3b79d23b1.tar.xz | |
Update MultiHook based hooks
Diffstat (limited to 'module/plugins/hooks/AlldebridCom.py')
| -rw-r--r-- | module/plugins/hooks/AlldebridCom.py | 11 | 
1 files changed, 5 insertions, 6 deletions
| diff --git a/module/plugins/hooks/AlldebridCom.py b/module/plugins/hooks/AlldebridCom.py index d5986053f..88a637de7 100644 --- a/module/plugins/hooks/AlldebridCom.py +++ b/module/plugins/hooks/AlldebridCom.py @@ -1,6 +1,5 @@  # -*- coding: utf-8 -*- -from module.network.RequestFactory import getURL  from module.plugins.internal.MultiHook import MultiHook @@ -10,9 +9,9 @@ class AlldebridCom(MultiHook):      __version__ = "0.14"      __config__ = [("https", "bool", "Enable HTTPS", False), -                  ("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), +                  ("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__ = """Alldebrid.com hook plugin""" @@ -20,8 +19,8 @@ class AlldebridCom(MultiHook):      __authors__     = [("Andy Voigt", "spamsales@online.de")] -    def getHoster(self): +    def getHosters(self):          https = "https" if self.getConfig("https") else "http" -        page = getURL(https + "://www.alldebrid.com/api.php", get={'action': "get_host"}).replace("\"", "").strip() +        page = self.getURL(https + "://www.alldebrid.com/api.php", get={'action': "get_host"}).replace("\"", "").strip()          return [x.strip() for x in page.split(",") if x.strip()] | 
