fix combine-voice-tracks again

This commit is contained in:
2023-07-21 17:23:19 -06:00
parent d54f9975f3
commit bbc3201154

View File

@@ -87,7 +87,10 @@ for json_filename in json_filenames:
for _, element in timestamps.items(): for _, element in timestamps.items():
end = element["end"] end = element["end"]
if "alts" in element: if "alts" in element:
end = element["alts"][-1]["end"] for alt in element["alts"]:
alt_end = alt["end"]
if alt_end > end:
end = alt_end
if end > file_start_time: if end > file_start_time:
file_start_time = end file_start_time = end