From b8beb51480f2ba157b58731ea375eb6544a0f865 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 31 Mar 2016 14:54:38 +0200 Subject: [PATCH] fix multipart audio only timelines --- pandora/item/timelines.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/item/timelines.py b/pandora/item/timelines.py index f440c655..58897bcd 100644 --- a/pandora/item/timelines.py +++ b/pandora/item/timelines.py @@ -113,10 +113,10 @@ def join_tiles(source_paths, durations, target_path): file_info = map(get_file_info, os.listdir(path)) file_info = filter(lambda x: x != None, file_info) files = {} - for mode in modes: - files[mode] = [] for info in sorted(file_info, key=lambda x: x['index']): mode = info['mode'] + if not mode in files: + files[mode] = [] files[mode].append(path + info['file']) if i: offset = int(sum(durations[:i]) * 25)