fix: 修复电视剧刮削问题

This commit is contained in:
景大侠
2026-02-25 20:12:55 +08:00
parent 26e41e1c14
commit 5f74367cd6
2 changed files with 14 additions and 7 deletions

View File

@@ -151,8 +151,9 @@ class DirectoryHelper:
if not matchs:
continue
# 处理特例,有的人重命名的第一层是年份、分辨率
if any("title" 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
else: