fix:整理失败时也打上已整理标签

This commit is contained in:
jxxghp
2025-06-03 17:48:30 +08:00
parent 5d188e3877
commit 5f18a21e86

View File

@@ -859,8 +859,9 @@ class TransferChain(ChainBase, metaclass=Singleton):
)
# 设置下载任务状态
if state:
self.transfer_completed(hashs=torrent.hash, downloader=torrent.downloader)
if not state:
logger.warn(f"整理下载器任务失败:{torrent.hash} - {errmsg}")
self.transfer_completed(hashs=torrent.hash, downloader=torrent.downloader)
# 结束
logger.info("所有下载器中下载完成的文件已整理完成")