diff options
-rw-r--r-- | module/plugins/DLC.pyc | bin | 2228 -> 2231 bytes | |||
-rwxr-xr-x | pyLoadCore.py | 13 |
2 files changed, 7 insertions, 6 deletions
diff --git a/module/plugins/DLC.pyc b/module/plugins/DLC.pyc Binary files differindex 3adddec00..980dd8ace 100644 --- a/module/plugins/DLC.pyc +++ b/module/plugins/DLC.pyc diff --git a/pyLoadCore.py b/pyLoadCore.py index 920278fe0..a0e645fb2 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -234,12 +234,13 @@ 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_file = sub("(\.pyc|\.py)", "", basename(file_handler)) - for line in open(file_handler, "r").readlines(): - if "props['pattern']" in line: - plugin_pattern = line.split("r\"")[1].split("\"")[0] - self.plugins_avaible[plugin_file] = plugin_pattern - self.logger.debug(("%s added") % plugin_file) - break + if plugin_file == "DLC": + plugin_pattern = "(?!http://).*\.dlc" + else: + for line in open(file_handler, "r").readlines(): + if "props['pattern']" in line: + plugin_pattern = line.split("r\"")[1].split("\"")[0] + break self.logger.info(_("created index of plugins")) def compare_time(self, start, end): |