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

修改自动匹配源存储器类型入参
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
+3 -1
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: