Merge pull request #427 from awerks/main

Update alignment.py
This commit is contained in:
Max Bain
2023-08-29 10:03:46 -06:00
committed by GitHub
4 changed files with 25 additions and 4 deletions

View File

@ -225,6 +225,9 @@ class SubtitlesWriter(ResultWriter):
highlight_words: bool = options["highlight_words"]
max_line_width = 1000 if raw_max_line_width is None else raw_max_line_width
preserve_segments = max_line_count is None or raw_max_line_width is None
if len(result["segments"]) == 0:
return
if len(result["segments"]) == 0:
return