fix logging
This commit is contained in:
parent
1db452e268
commit
0403f1f48c
@ -113,7 +113,7 @@ class QbittorrentModule(_ModuleBase):
|
|||||||
# 获取种子Hash
|
# 获取种子Hash
|
||||||
torrent_hash = self.qbittorrent.get_torrent_id_by_tag(tags=tag)
|
torrent_hash = self.qbittorrent.get_torrent_id_by_tag(tags=tag)
|
||||||
if not torrent_hash:
|
if not torrent_hash:
|
||||||
return None, f"获取种子Hash失败:{content}"
|
return None, f"下载任务添加成功,但获取Qbittorrent任务信息失败:{content}"
|
||||||
else:
|
else:
|
||||||
if is_paused:
|
if is_paused:
|
||||||
# 种子文件
|
# 种子文件
|
||||||
|
@ -179,7 +179,7 @@ class Qbittorrent:
|
|||||||
通过标签多次尝试获取刚添加的种子ID,并移除标签
|
通过标签多次尝试获取刚添加的种子ID,并移除标签
|
||||||
"""
|
"""
|
||||||
torrent_id = None
|
torrent_id = None
|
||||||
# QB添加下载后需要时间,重试5次每次等待5秒
|
# QB添加下载后需要时间,重试10次每次等待3秒
|
||||||
for i in range(1, 10):
|
for i in range(1, 10):
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
torrent_id = self.__get_last_add_torrentid_by_tag(tags=tags,
|
torrent_id = self.__get_last_add_torrentid_by_tag(tags=tags,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user