summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-11 20:57:48 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-11 20:57:48 +0200
commit88185ee505aab68a7352ee0bb414ee5e8cf19ccf (patch)
tree5185c3dbdfa04a2ed1134a7766c58c641cc9f410 /module/plugins
parentrevert unintentional changes (diff)
downloadpyload-88185ee505aab68a7352ee0bb414ee5e8cf19ccf.tar.xz
comment out filemanager
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hooks/RealdebridCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hooks/RealdebridCom.py b/module/plugins/hooks/RealdebridCom.py
index e415f8e05..2c8bf1259 100644
--- a/module/plugins/hooks/RealdebridCom.py
+++ b/module/plugins/hooks/RealdebridCom.py
@@ -26,9 +26,9 @@ class RealdebridCom(Hook):
def getHostersCached(self):
if not self.hosters:
https = "https" if self.getConfig("https") else "http"
- page = getURL(https + "://real-debrid.com/api/hosters.php")
+ page = getURL(https + "://real-debrid.com/api/hosters.php").replace("\"","").strip()
- self.hosters = [x.strip() for x in page.replace("\"", "").split(",")]
+ self.hosters = [x.strip() for x in page.split(",") if x.strip()]
for rep in self.replacements:
if rep[0] in self.hosters:
@@ -56,13 +56,13 @@ class RealdebridCom(Hook):
module = self.core.pluginManager.getPlugin("RealdebridCom")
klass = getattr(module, "RealdebridCom")
#inject real debrid plugin
- self.core.log.debug("Real-Debrid: Overwritten Hosters: %s" % ", ".join(sorted(supported)))
+ self.logDebug("Overwritten Hosters: %s" % ", ".join(sorted(supported)))
for hoster in supported:
dict = self.core.pluginManager.hosterPlugins[hoster]
dict["new_module"] = module
dict["new_name"] = "RealdebridCom"
- self.core.log.debug("Real-Debrid: New Hosters: %s" % ", ".join(sorted(new_supported)))
+ self.logDebug("New Hosters: %s" % ", ".join(sorted(new_supported)))
#create new regexp
regexp = r".*(%s).*" % "|".join([klass.__pattern__] + [x.replace(".", "\\.") for x in new_supported])