summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/RealdebridCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-27 21:20:59 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-27 21:20:59 +0100
commit575ce629081995766a231f0a9f3e97e3b79d23b1 (patch)
tree94066e87d5af5b9b1a11012eee11fcaf78bf8c68 /module/plugins/hooks/RealdebridCom.py
parent[MultiHook] Crypter support (diff)
downloadpyload-575ce629081995766a231f0a9f3e97e3b79d23b1.tar.xz
Update MultiHook based hooks
Diffstat (limited to 'module/plugins/hooks/RealdebridCom.py')
-rw-r--r--module/plugins/hooks/RealdebridCom.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/module/plugins/hooks/RealdebridCom.py b/module/plugins/hooks/RealdebridCom.py
index 066aa52c4..05a6df1dd 100644
--- a/module/plugins/hooks/RealdebridCom.py
+++ b/module/plugins/hooks/RealdebridCom.py
@@ -1,18 +1,17 @@
# -*- coding: utf-8 -*-
-from module.network.RequestFactory import getURL
from module.plugins.internal.MultiHook import MultiHook
class RealdebridCom(MultiHook):
__name__ = "RealdebridCom"
__type__ = "hook"
- __version__ = "0.44"
+ __version__ = "0.45"
__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__ = """Real-Debrid.com hook plugin"""
@@ -20,8 +19,8 @@ class RealdebridCom(MultiHook):
__authors__ = [("Devirex Hazzard", "naibaf_11@yahoo.de")]
- def getHoster(self):
+ def getHosters(self):
https = "https" if self.getConfig("https") else "http"
- page = getURL(https + "://real-debrid.com/api/hosters.php").replace("\"", "").strip()
+ page = self.getURL(https + "://real-debrid.com/api/hosters.php").replace("\"", "").strip()
return [x.strip() for x in page.split(",") if x.strip()]