fix transfer

This commit is contained in:
jxxghp
2024-09-20 08:15:23 +08:00
parent 2486b9274c
commit 623580a7ae
4 changed files with 16 additions and 20 deletions
+4 -4
View File
@@ -101,9 +101,7 @@ class TransferChain(ChainBase):
transfer_dirinfo = dir_info
break
if not transfer_dirinfo:
logger.info(f"文件 {file_path} 不在下载器监控目录中,不通过下载器进行整理")
# 设置下载任务状态
self.transfer_completed(hashs=torrent.hash, path=file_path)
logger.debug(f"文件 {file_path} 不在下载器监控目录中,不通过下载器进行整理")
continue
# 查询下载记录识别情况
downloadhis: DownloadHistory = self.downloadhis.get_by_hash(torrent.hash)
@@ -134,7 +132,9 @@ class TransferChain(ChainBase):
size=file_path.stat().st_size,
extension=file_path.suffix.lstrip('.'),
),
mediainfo=mediainfo, download_hash=torrent.hash
target_storage=transfer_dirinfo.library_storage,
mediainfo=mediainfo,
download_hash=torrent.hash
)
# 设置下载任务状态