Skip to content

Commit a890b4f

Browse files
committed
fix trackers
1 parent c958e0e commit a890b4f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/plugins/torrenttransfer/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,11 +595,12 @@ def transfer(self):
595595
# 从源下载任务信息中获取Tracker
596596
torrent = torrent_item.get('torrent')
597597
# 源trackers
598-
trackers = [tracker.get("url") for tracker in torrent.trackers]
598+
trackers = [tracker.get("url") for tracker in torrent.trackers
599+
if str(tracker.get("url")).startswith('http')]
599600
logger.info(f"获取到源tracker:{trackers}")
600601

601602
# 发送到另一个下载器中下载:默认暂停、传输下载路径、关闭自动管理模式
602-
logger.info(f"添加转移做种任务到下载器 {todownloader}{torrent_file} ...")
603+
logger.info(f"添加转移做种任务到下载器 {todownloader}{torrent_file}")
603604
download_id = self.__download(downloader=todownloader,
604605
content=torrent_file.read_bytes(),
605606
save_path=download_dir)

0 commit comments

Comments
 (0)