We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9aca0f commit c98fbfcCopy full SHA for c98fbfc
modules/utils/subtitle_manager.py
@@ -172,7 +172,7 @@ def iterate_subtitles():
172
if len(subtitle) > 0:
173
yield subtitle
174
175
- if len(result["segments"]) > 0 and "words" in result["segments"][0]:
+ if len(result["segments"]) > 0 and "words" in result["segments"][0] and result["segments"][0]["words"]:
176
for subtitle in iterate_subtitles():
177
subtitle_start = self.format_timestamp(subtitle[0]["start"])
178
subtitle_end = self.format_timestamp(subtitle[-1]["end"])
0 commit comments