summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2010-02-03 22:55:25 +0100
committerGravatar spoob <spoob@gmx.de> 2010-02-03 22:55:25 +0100
commitb207c4d48b0b9f4014d14d79498eb73c1e4a737e (patch)
treec7e43bc8d44d1e0a612bbc5baf52ee8536430beb /pyLoadCore.py
parentmissing mo files (diff)
downloadpyload-b207c4d48b0b9f4014d14d79498eb73c1e4a737e.tar.xz
better DLC Support for Python 2.5 and 2.6
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 1047273d6..39ea4727f 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -289,11 +289,15 @@ class Core(object):
plugins = glob(join(self.plugin_folder, "hoster", "*.py"))
plugins += glob(join(self.plugin_folder, "decrypter", "*.py"))
plugins += glob(join(self.plugin_folder, "container", "*.py"))
- plugins += glob(join(self.plugin_folder, "container", "DLC.pyc"))
+ plugins += glob(join(self.plugin_folder, "container", "DLC_*.pyc"))
for file_handler in plugins:
plugin_pattern = ""
plugin_file = sub("(\.pyc|\.py)", "", basename(file_handler))
- if plugin_file == "DLC":
+ if plugin_file.startswith("DLC"):
+ if plugin_file == "DLC_25" and not version_info < (2, 6):
+ continue
+ if plugin_file == "DLC_26" and not version_info > (2, 6):
+ continue
plugin_pattern = "(?!http://).*\.dlc"
else:
for line in open(file_handler, "r").readlines():