fix multipart audio only timelines

This commit is contained in:
j 2016-03-31 14:54:38 +02:00
parent 30ce422452
commit b8beb51480

View file

@ -113,10 +113,10 @@ def join_tiles(source_paths, durations, target_path):
file_info = map(get_file_info, os.listdir(path)) file_info = map(get_file_info, os.listdir(path))
file_info = filter(lambda x: x != None, file_info) file_info = filter(lambda x: x != None, file_info)
files = {} files = {}
for mode in modes:
files[mode] = []
for info in sorted(file_info, key=lambda x: x['index']): for info in sorted(file_info, key=lambda x: x['index']):
mode = info['mode'] mode = info['mode']
if not mode in files:
files[mode] = []
files[mode].append(path + info['file']) files[mode].append(path + info['file'])
if i: if i:
offset = int(sum(durations[:i]) * 25) offset = int(sum(durations[:i]) * 25)