diff options
author | mkaay <mkaay@mkaay.de> | 2010-02-04 19:15:57 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-02-04 19:15:57 +0100 |
commit | 71be7aa1a8ebd790392b3207ab03fa7cb9dc0153 (patch) | |
tree | 7a6d109d5b9ba5023db1a28354a72ca530904dfa | |
parent | better gui performance, i18n in gui, new pot files (diff) | |
download | pyload-71be7aa1a8ebd790392b3207ab03fa7cb9dc0153.tar.xz |
readded new dlc stuff
-rwxr-xr-x | pyLoadCore.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index 4184de4da..453e2d56e 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():
|