Skip to content

Commit ea5d855

Browse files
Update app/helper/directory.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 5f74367 commit ea5d855

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/helper/directory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ def get_media_root_path(rename_format: str, rename_path: Path) -> Optional[Path]
151151
if not matchs:
152152
continue
153153
# 处理特例,有的人重命名的第一层是年份、分辨率
154-
if any("title" in m for m in matchs) \
155-
and not any("season" in m for m in matchs):
154+
if (any("title" in m for m in matchs)
155+
and not any("season" in m for m in matchs)):
156156
# 找出最后一层含有标题且不含季参数的目录作为媒体根目录
157157
rename_format_level = level
158158
break

0 commit comments

Comments
 (0)