mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
Update app/helper/directory.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -151,8 +151,8 @@ class DirectoryHelper:
|
|||||||
if not matchs:
|
if not matchs:
|
||||||
continue
|
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):
|
and not any("season" in m for m in matchs)):
|
||||||
# 找出最后一层含有标题且不含季参数的目录作为媒体根目录
|
# 找出最后一层含有标题且不含季参数的目录作为媒体根目录
|
||||||
rename_format_level = level
|
rename_format_level = level
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user