From 0403f1f48cf623755b27afe70364e3b2c938fddd Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 1 Mar 2024 13:10:19 +0800 Subject: [PATCH] fix logging --- app/modules/qbittorrent/__init__.py | 2 +- app/modules/qbittorrent/qbittorrent.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/qbittorrent/__init__.py b/app/modules/qbittorrent/__init__.py index d193fa2a..fafd0f5a 100644 --- a/app/modules/qbittorrent/__init__.py +++ b/app/modules/qbittorrent/__init__.py @@ -113,7 +113,7 @@ class QbittorrentModule(_ModuleBase): # 获取种子Hash torrent_hash = self.qbittorrent.get_torrent_id_by_tag(tags=tag) if not torrent_hash: - return None, f"获取种子Hash失败:{content}" + return None, f"下载任务添加成功,但获取Qbittorrent任务信息失败:{content}" else: if is_paused: # 种子文件 diff --git a/app/modules/qbittorrent/qbittorrent.py b/app/modules/qbittorrent/qbittorrent.py index d06fb62f..275ed225 100644 --- a/app/modules/qbittorrent/qbittorrent.py +++ b/app/modules/qbittorrent/qbittorrent.py @@ -179,7 +179,7 @@ class Qbittorrent: 通过标签多次尝试获取刚添加的种子ID,并移除标签 """ torrent_id = None - # QB添加下载后需要时间,重试5次每次等待5秒 + # QB添加下载后需要时间,重试10次每次等待3秒 for i in range(1, 10): time.sleep(3) torrent_id = self.__get_last_add_torrentid_by_tag(tags=tags,