fix missing prefix

Fixed missing the speaker part when enable --highlight_words
This commit is contained in:
invisprints
2023-08-25 12:08:16 +08:00
committed by GitHub
parent ef965a03ed
commit cc81ab7db7

View File

@ -296,7 +296,7 @@ class SubtitlesWriter(ResultWriter):
start = self.format_timestamp(this_word["start"])
end = self.format_timestamp(this_word["end"])
if last != start:
yield last, start, subtitle_text
yield last, start, prefix + subtitle_text
yield start, end, prefix + " ".join(
[