Skip to content

Commit

Permalink
Revert "Validate segments not empty in subtitle_manager.py"
Browse files Browse the repository at this point in the history
This reverts commit e6145c4.
  • Loading branch information
jhj0517 committed Jan 25, 2025
1 parent 61f55ee commit 93d8f00
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions modules/utils/subtitle_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,6 @@ def iterate_result(
align_lrc_words: bool = False,
max_words_per_line: Optional[int] = None,
):
if not isinstance(result, dict):
return
if "segments" not in result or not isinstance(result["segments"], list):
return
if len(result["segments"]) == 0:
return
options = options or {}
max_line_width = max_line_width or options.get("max_line_width")
max_line_count = max_line_count or options.get("max_line_count")
Expand Down

0 comments on commit 93d8f00

Please sign in to comment.