summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-11-22 18:41:09 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-11-22 18:41:09 +0100
commite50443e707bd6e01e42cdf519e1422589694dbb1 (patch)
treebaf70f9ac2bb68e77d406c1b345ea8570e8be901 /pyLoadCore.py
parentfixed SecureXMLRPCServer (diff)
downloadpyload-e50443e707bd6e01e42cdf519e1422589694dbb1.tar.xz
fixed plugin index
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 671cc7585..6d52ca4e0 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -233,6 +233,7 @@ class Core(object):
def create_plugin_index(self):
for file_handler in glob(self.plugin_folder + sep + '*.py') + glob(self.plugin_folder + sep + 'DLC.pyc'):
+ plugin_pattern = ""
plugin_file = sub("(\.pyc|\.py)", "", basename(file_handler))
if plugin_file == "DLC":
plugin_pattern = "(?!http://).*\.dlc"
@@ -241,6 +242,9 @@ class Core(object):
if "props['pattern']" in line:
plugin_pattern = line.split("r\"")[1].split("\"")[0]
break
+ if plugin_pattern != "":
+ self.plugins_avaible[plugin_file] = plugin_pattern
+ self.logger.debug(plugin_file + _(" added"))
self.logger.info(_("created index of plugins"))
def compare_time(self, start, end):