From 3b42a17dbf1849c303736e998024f5bf70bd6cc5 Mon Sep 17 00:00:00 2001 From: yoshiko2 Date: Fri, 3 Feb 2023 05:06:19 +0800 Subject: [PATCH] Fix: cn_sub data type --- core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core.py b/core.py index d9b46cd..3fe66cc 100644 --- a/core.py +++ b/core.py @@ -952,7 +952,7 @@ def core_main(movie_path, number_th, oCC, specified_source=None, specified_url=N # Move subtitles move_status = move_subtitles(movie_path, path, multi_part, number, part, leak_word, c_word, hack_word) if move_status: - cn_sub = "1" + cn_sub = True # 添加水印 if conf.is_watermark(): add_mark(os.path.join(path, poster_path), os.path.join(path, thumb_path), cn_sub, leak, uncensored, @@ -971,7 +971,7 @@ def core_main(movie_path, number_th, oCC, specified_source=None, specified_url=N # Move subtitles move_status = move_subtitles(movie_path, path, multi_part, number, part, leak_word, c_word, hack_word) if move_status: - cn_sub = "1" + cn_sub = True if conf.is_watermark(): add_mark(os.path.join(path, poster_path), os.path.join(path, thumb_path), cn_sub, leak, uncensored, hack, _4k)