diff options
author | spoob <spoob@gmx.de> | 2009-11-16 20:28:33 +0100 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-11-16 20:28:33 +0100 |
commit | f22b9cebe1f800127658f94b9e4c9b9b2481c59e (patch) | |
tree | 1737fc6396db20a238f4de5923670baec0348f40 | |
parent | Fixed DLC Plugin for new Plugin System (diff) | |
download | pyload-f22b9cebe1f800127658f94b9e4c9b9b2481c59e.tar.xz |
Fixed DLC Plugin
-rw-r--r-- | module/plugins/DLC.pyc | bin | 2228 -> 2231 bytes | |||
-rwxr-xr-x | pyLoadCore.py | 11 |
2 files changed, 7 insertions, 4 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 d84353902..94a57aa70 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -147,10 +147,13 @@ class Core(object): for file_handler in glob(self.plugin_folder + sep + '*.py') + glob(self.plugin_folder + sep + 'DLC.pyc'): plugin_pattern = "" plugin_file = basename(file_handler).replace('.pyc', '').replace('.py', '') - for line in open(file_handler, "r").readlines(): - if "props['pattern']" in line: - plugin_pattern = line.split("r\"")[1].split("\"")[0] - 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 if plugin_pattern != "": self.plugins_avaible[plugin_file] = plugin_pattern self.logger.debug(plugin_file + _(" added")) |