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

@@ -178,8 +178,7 @@ class StorageChain(ChainBase):
if mtype:
# 重命名格式
rename_format = settings.TV_RENAME_FORMAT \
if mtype == MediaType.TV else settings.MOVIE_RENAME_FORMAT
rename_format = settings.RENAME_FORMAT(mtype)
media_path = DirectoryHelper.get_media_root_path(
rename_format, rename_path=Path(fileitem.path)
)