fix 手动整理时强制目录

This commit is contained in:
jxxghp
2024-11-19 20:22:31 +08:00
parent de94e5d595
commit 97054adc61
+4 -5
View File
@@ -389,14 +389,13 @@ class TransferChain(ChainBase):
download_hash = download_file.download_hash download_hash = download_file.download_hash
# 查询整理目标目录 # 查询整理目标目录
if not target_directory: if not target_directory and not target_path:
if target_path: if src_match:
target_directory = self.directoryhelper.get_dir(file_mediainfo, # 按源目录匹配,以便找到更合适的目录配置
storage=target_storage, dest_path=target_path)
elif src_match:
target_directory = self.directoryhelper.get_dir(file_mediainfo, target_directory = self.directoryhelper.get_dir(file_mediainfo,
storage=file_item.storage, src_path=file_path) storage=file_item.storage, src_path=file_path)
else: else:
# 未指定目标路径,根据媒体信息获取目标目录
target_directory = self.directoryhelper.get_dir(file_mediainfo) target_directory = self.directoryhelper.get_dir(file_mediainfo)
# 执行整理 # 执行整理