fix TorrentTransfer
This commit is contained in:
parent
538c20ee56
commit
c82ab161d0
@ -588,7 +588,7 @@ class TorrentTransfer(_PluginBase):
|
|||||||
fastresume_trackers = torrent_fastresume.get("trackers")
|
fastresume_trackers = torrent_fastresume.get("trackers")
|
||||||
if fastresume_trackers:
|
if fastresume_trackers:
|
||||||
# 重新赋值
|
# 重新赋值
|
||||||
torrent_main.announce_urls = fastresume_trackers[0]
|
torrent_main.announce_urls = fastresume_trackers
|
||||||
# 替换种子文件路径
|
# 替换种子文件路径
|
||||||
torrent_file = settings.TEMP_PATH / f"{hash_item.get('hash')}.torrent"
|
torrent_file = settings.TEMP_PATH / f"{hash_item.get('hash')}.torrent"
|
||||||
# 编码并保存到临时文件
|
# 编码并保存到临时文件
|
||||||
@ -606,6 +606,7 @@ class TorrentTransfer(_PluginBase):
|
|||||||
if not download_id:
|
if not download_id:
|
||||||
# 下载失败
|
# 下载失败
|
||||||
fail += 1
|
fail += 1
|
||||||
|
logger.error(f"添加下载任务失败:{torrent_file}")
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
# 追加校验任务
|
# 追加校验任务
|
||||||
|
Loading…
x
Reference in New Issue
Block a user