forked from 0x2620/pandora
fix multipart audio only timelines
This commit is contained in:
parent
30ce422452
commit
b8beb51480
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue