From ea5d855bc364c9c326ac039be3c512eec9577db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E8=99=BE?= <802181+cddjr@users.noreply.github.com> Date: Wed, 25 Feb 2026 20:21:37 +0800 Subject: [PATCH] Update app/helper/directory.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- app/helper/directory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helper/directory.py b/app/helper/directory.py index e8b923d5..411943ce 100644 --- a/app/helper/directory.py +++ b/app/helper/directory.py @@ -151,8 +151,8 @@ class DirectoryHelper: if not matchs: continue # 处理特例,有的人重命名的第一层是年份、分辨率 - if any("title" in m for m in matchs) \ - and not any("season" in m for m in matchs): + if (any("title" in m for m in matchs) + and not any("season" in m for m in matchs)): # 找出最后一层含有标题且不含季参数的目录作为媒体根目录 rename_format_level = level break