不整理目录的下载路径可以被下载器获取

修改自动匹配源存储器类型入参
This commit is contained in:
Attente
2024-11-25 13:51:04 +08:00
parent 9acbcf4922
commit 84465a6536
2 changed files with 4 additions and 2 deletions

View File

@@ -407,7 +407,7 @@ class TransferChain(ChainBase):
else:
# 未指定目标路径,根据媒体信息获取目标目录
target_directory = self.directoryhelper.get_dir(file_mediainfo,
storage=target_storage,
storage=file_item.storage,
target_storage=target_storage)
# 执行整理

View File

@@ -68,12 +68,14 @@ class DirectoryHelper:
# 电影/电视剧
media_type = media.type.value
dirs = self.get_dirs()
# 是否下载器匹配
not_downloader: bool = src_path or dest_path or target_storage
# 已匹配的目录
matched_dirs: List[schemas.TransferDirectoryConf] = []
# 按照配置顺序查找
for d in dirs:
# 没有启用整理的目录
if not d.monitor_type:
if not d.monitor_type and not_downloader:
continue
# 源存储类型不匹配
if storage and d.storage != storage: