From bbc32011548762cff4ac8579447bc550835eca0a Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 21 Jul 2023 17:23:19 -0600 Subject: [PATCH] fix combine-voice-tracks again --- scripts/combine-voice-tracks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/combine-voice-tracks.py b/scripts/combine-voice-tracks.py index ad03590..3345b38 100644 --- a/scripts/combine-voice-tracks.py +++ b/scripts/combine-voice-tracks.py @@ -87,7 +87,10 @@ for json_filename in json_filenames: for _, element in timestamps.items(): end = element["end"] 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: file_start_time = end