From 62fa776ec360587f235e39098ec64e1f16bd1663 Mon Sep 17 00:00:00 2001 From: x1ao4 Date: Sat, 9 Aug 2025 22:43:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=B5=E5=BD=B1=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E8=A7=84=E5=88=99=E7=A9=BA=E9=85=8D=E7=BD=AE=E8=A2=AB?= =?UTF-8?q?=E5=BC=BA=E5=88=B6=E8=A6=86=E7=9B=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/index.html b/app/templates/index.html index c000b2c..1c89c35 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -3185,11 +3185,11 @@ auto_search_resources: "enabled" }; } - // 确保电影命名规则字段存在 - if (!config_data.task_settings.movie_naming_pattern) { + // 确保电影命名规则字段存在,只在字段不存在时设置默认值,允许用户设置为空字符串 + if (config_data.task_settings.movie_naming_pattern === undefined) { config_data.task_settings.movie_naming_pattern = "^(.*)\\.([^.]+)"; } - if (!config_data.task_settings.movie_naming_replace) { + if (config_data.task_settings.movie_naming_replace === undefined) { config_data.task_settings.movie_naming_replace = "片名 (年份).\\2"; } // 确保电视忽略后缀设置存在