From 1b3ae6ab25b7117127df73697e3f2cb06234837e Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 23 Jan 2026 18:10:59 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=B8=8B=E8=BD=BD=E5=99=A8=E6=95=B4?= =?UTF-8?q?=E7=90=86=E6=A0=87=E7=AD=BE=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/transfer.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/app/chain/transfer.py b/app/chain/transfer.py index 4092f454..30701768 100755 --- a/app/chain/transfer.py +++ b/app/chain/transfer.py @@ -637,18 +637,9 @@ class TransferChain(ChainBase, ConfigReloadMixin, metaclass=Singleton): if self.jobview.is_finished(task): __notify() - # 全部整理完成,设置完成的种子为已整理 - if self.jobview.is_done(task): - # 查询作业中的所有任务 - tasks = self.jobview.all_tasks(task.mediainfo, task.meta.begin_season) - processed_hashes = set() - for t in tasks: - if t.download_hash and t.download_hash not in processed_hashes: - # 检查该种子的所有任务(跨作业)是否都已完成 - if self.jobview.is_torrent_done(t.download_hash): - processed_hashes.add(t.download_hash) - # 设置种子状态为已整理 - self.transfer_completed(hashs=t.download_hash, downloader=t.downloader) + # 只要该种子的所有任务都已整理完成,则设置种子状态为已整理 + if task.download_hash and self.jobview.is_torrent_done(task.download_hash): + self.transfer_completed(hashs=task.download_hash, downloader=task.downloader) # 移动模式,全部成功时删除空目录和种子文件 if transferinfo.transfer_type in ["move"]: