summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2024-05-12 10:13:21 -0400
committermorpheus65535 <[email protected]>2024-05-12 10:13:21 -0400
commitb3a5d43a10befd2451711a1abbafe4f5c65f3c76 (patch)
tree57910879ebffcfe0817291861c0c0388a6c1758f
parentfd0a8c3d3bd1beadb1fed1a58013e386d3f29653 (diff)
downloadbazarr-b3a5d43a10befd2451711a1abbafe4f5c65f3c76.tar.gz
bazarr-b3a5d43a10befd2451711a1abbafe4f5c65f3c76.zip
Fixed issue while saving some odd case ASS embedded subtitles.v1.4.3-beta.37
-rw-r--r--custom_libs/subliminal_patch/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom_libs/subliminal_patch/core.py b/custom_libs/subliminal_patch/core.py
index cb21f4581..1282c2e4b 100644
--- a/custom_libs/subliminal_patch/core.py
+++ b/custom_libs/subliminal_patch/core.py
@@ -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,