From d8e58cac836f0615cddbd85b62d2af8498e7df40 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Mon, 13 May 2024 22:11:40 -0400 Subject: [PATCH] no log: fixed empty subtitles being saved --- custom_libs/subliminal_patch/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_libs/subliminal_patch/core.py b/custom_libs/subliminal_patch/core.py index 1282c2e4b..872896e9c 100644 --- a/custom_libs/subliminal_patch/core.py +++ b/custom_libs/subliminal_patch/core.py @@ -1193,7 +1193,7 @@ def save_subtitles(file_path, subtitles, single=False, directory=None, chmod=Non must_remove_hi = 'remove_HI' in subtitle.mods # check content - if subtitle.content is None: + if subtitle.content is None or subtitle.text is None: logger.error('Skipping subtitle %r: no content', subtitle) continue