From a890b4f01d2d07f49a840062736a937cfaa1991b Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 22 Aug 2023 17:57:52 +0800 Subject: [PATCH] fix trackers --- app/plugins/torrenttransfer/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/plugins/torrenttransfer/__init__.py b/app/plugins/torrenttransfer/__init__.py index 16280149..65b33fbd 100644 --- a/app/plugins/torrenttransfer/__init__.py +++ b/app/plugins/torrenttransfer/__init__.py @@ -595,11 +595,12 @@ class TorrentTransfer(_PluginBase): # 从源下载任务信息中获取Tracker torrent = torrent_item.get('torrent') # 源trackers - trackers = [tracker.get("url") for tracker in torrent.trackers] + trackers = [tracker.get("url") for tracker in torrent.trackers + if str(tracker.get("url")).startswith('http')] logger.info(f"获取到源tracker:{trackers}") # 发送到另一个下载器中下载:默认暂停、传输下载路径、关闭自动管理模式 - logger.info(f"添加转移做种任务到下载器 {todownloader}:{torrent_file} ...") + logger.info(f"添加转移做种任务到下载器 {todownloader}:{torrent_file}") download_id = self.__download(downloader=todownloader, content=torrent_file.read_bytes(), save_path=download_dir)