fix logging

This commit is contained in:
jxxghp 2024-03-01 13:10:19 +08:00
parent 1db452e268
commit 0403f1f48c
2 changed files with 2 additions and 2 deletions

View File

@ -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:
# 种子文件

View File

@ -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,