mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-28 03:27:31 +08:00
fix transfer
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
# 设置下载任务状态
|
||||
|
||||
Reference in New Issue
Block a user