Skip to content

Commit

Permalink
Fixed issue while saving some odd case ASS embedded subtitles.
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed May 12, 2024
1 parent fd0a8c3 commit b3a5d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_libs/subliminal_patch/core.py
Expand Up @@ -1203,7 +1203,7 @@ def save_subtitles(file_path, subtitles, single=False, directory=None, chmod=Non
continue

# create subtitle path
if bool(re.search(HI_REGEX, subtitle.text)):
if subtitle.text and bool(re.search(HI_REGEX, subtitle.text)):
subtitle.language.hi = True
subtitle_path = get_subtitle_path(file_path, None if single else subtitle.language,
forced_tag=subtitle.language.forced,
Expand Down

0 comments on commit b3a5d43

Please sign in to comment.