This commit is contained in:
景大侠
2025-07-13 00:48:58 +08:00
parent 5bb2167b78
commit 05495e481d
6 changed files with 40 additions and 20 deletions

View File

@@ -38,11 +38,7 @@ def query_name(path: str, filetype: str,
return schemas.Response(success=False, message="未识别到新名称")
if filetype == "dir":
media_path = DirectoryHelper.get_media_root_path(
rename_format=(
settings.TV_RENAME_FORMAT
if mediainfo.type == MediaType.TV
else settings.MOVIE_RENAME_FORMAT
),
rename_format=settings.RENAME_FORMAT(mediainfo.type),
rename_path=Path(new_path),
)
if media_path: