mirror of
https://github.com/morpheus65535/bazarr
synced 2025-03-11 06:32:52 +00:00
Fixed issue while saving some odd case ASS embedded subtitles.
This commit is contained in:
parent
fd0a8c3d3b
commit
b3a5d43a10
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue