From d55e6dd38e19918e5269a030e691febd96d65324 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 9 Mar 2024 18:28:04 +0800 Subject: [PATCH] fix DOWNLOADER --- plugins/mediasyncdel/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/mediasyncdel/__init__.py b/plugins/mediasyncdel/__init__.py index 3175e4d..a3e62ca 100644 --- a/plugins/mediasyncdel/__init__.py +++ b/plugins/mediasyncdel/__init__.py @@ -1101,7 +1101,7 @@ class MediaSyncDel(_PluginBase): 全部删除则删除种子 """ download_id = torrent_hash - download = settings.DOWNLOADER + download = settings.DEFAULT_DOWNLOADER history_key = "%s-%s" % (download, torrent_hash) plugin_id = "TorrentTransfer" transfer_history = self.get_data(key=history_key, @@ -1151,7 +1151,7 @@ class MediaSyncDel(_PluginBase): logger.info(f"{history_key} 转种时未删除源下载任务,开始删除源下载任务…") # 删除源种子 - logger.info(f"删除源下载器下载任务:{settings.DOWNLOADER} - {torrent_hash}") + logger.info(f"删除源下载器下载任务:{settings.DEFAULT_DOWNLOADER} - {torrent_hash}") self.chain.remove_torrents(torrent_hash) handle_torrent_hashs.append(torrent_hash) @@ -1172,7 +1172,7 @@ class MediaSyncDel(_PluginBase): logger.info(f"{history_key} 转种时未删除源下载任务,开始暂停源下载任务…") # 暂停源种子 - logger.info(f"暂停源下载器下载任务:{settings.DOWNLOADER} - {torrent_hash}") + logger.info(f"暂停源下载器下载任务:{settings.DEFAULT_DOWNLOADER} - {torrent_hash}") self.chain.stop_torrents(torrent_hash) handle_torrent_hashs.append(torrent_hash)