From 2f4df5a77bf67441b8cbff60d0615ad946aa3de3 Mon Sep 17 00:00:00 2001 From: so1ve Date: Tue, 4 Feb 2025 15:02:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(torrenttransfer.v2):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins.v2/torrenttransfer/__init__.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins.v2/torrenttransfer/__init__.py b/plugins.v2/torrenttransfer/__init__.py index e035c89..e84ed41 100644 --- a/plugins.v2/torrenttransfer/__init__.py +++ b/plugins.v2/torrenttransfer/__init__.py @@ -818,11 +818,6 @@ class TorrentTransfer(_PluginBase): # 下载成功 logger.info(f"成功添加转移做种任务,种子文件:{torrent_file}") - # TR会自动校验,QB需要手动校验 - if self.downloader_helper.is_downloader("qbittorrent", service=to_service): - logger.info(f"qbittorrent 开始校验 {download_id} ...") - to_downloader.recheck_torrents(ids=[download_id]) - if self._skipverify: # 跳过校验 logger.info(f"{download_id} 跳过校验,请自行检查...") @@ -836,6 +831,10 @@ class TorrentTransfer(_PluginBase): if not self._recheck_torrents.get(to_service.name): self._recheck_torrents[to_service.name] = [] self._recheck_torrents[to_service.name].append(download_id) + # TR会自动校验,QB需要手动校验 + if self.downloader_helper.is_downloader("qbittorrent", service=to_service): + logger.info(f"qbittorrent 开始校验 {download_id} ...") + to_downloader.recheck_torrents(ids=[download_id]) # 删除源种子,不能删除文件! if self._deletesource: