From 00ea83dffecefa3923fc8b5897c8d1395c2f05fd Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 22 Aug 2012 14:13:17 +0200 Subject: [PATCH] movie.py: more bugfixes --- ox/movie.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ox/movie.py b/ox/movie.py index f64a053..e40a66e 100644 --- a/ox/movie.py +++ b/ox/movie.py @@ -150,7 +150,9 @@ def parse_item_files(files): main_version = language_version_keys[0] if language_version_keys else full_version_keys[0] # add duplicate files for file in duplicate_files: - version_files[get_version_key(file)].append(file) + key = get_version_key(file, extension=False) + version_key = '%s%s' % (key, extension[key] if key in extension else '') + version_files[version_key].append(file) # return data data = [] for version_key in version_files: