summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-11-16 20:28:33 +0100
committerGravatar spoob <spoob@gmx.de> 2009-11-16 20:28:33 +0100
commitf22b9cebe1f800127658f94b9e4c9b9b2481c59e (patch)
tree1737fc6396db20a238f4de5923670baec0348f40
parentFixed DLC Plugin for new Plugin System (diff)
downloadpyload-f22b9cebe1f800127658f94b9e4c9b9b2481c59e.tar.xz
Fixed DLC Plugin
-rw-r--r--module/plugins/DLC.pycbin2228 -> 2231 bytes
-rwxr-xr-xpyLoadCore.py11
2 files changed, 7 insertions, 4 deletions
diff --git a/module/plugins/DLC.pyc b/module/plugins/DLC.pyc
index 3adddec00..980dd8ace 100644
--- a/module/plugins/DLC.pyc
+++ b/module/plugins/DLC.pyc
Binary files differ
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"))