This commit is contained in:
thsrite 2023-08-07 21:05:18 +08:00
parent 6d3fa91364
commit 215d9e0421

View File

@ -145,8 +145,7 @@ class DownloadChain(ChainBase):
torrent_site=_torrent.site_name torrent_site=_torrent.site_name
) )
# 发送消息 # 发送消息
self.post_download_message(meta=_meta, mediainfo=_media, torrent=_torrent, self.post_download_message(meta=_meta, mediainfo=_media, torrent=_torrent, channel=channel)
channel=channel, userid=userid)
# 下载成功后处理 # 下载成功后处理
self.download_added(context=context, torrent_path=torrent_file, download_dir=download_dir) self.download_added(context=context, torrent_path=torrent_file, download_dir=download_dir)
# 广播事件 # 广播事件
@ -168,8 +167,7 @@ class DownloadChain(ChainBase):
f"种子名称:{_meta.org_string}\n" f"种子名称:{_meta.org_string}\n"
f"种子链接:{_torrent.enclosure}\n" f"种子链接:{_torrent.enclosure}\n"
f"错误信息:{error_msg}", f"错误信息:{error_msg}",
image=_media.get_message_image(), image=_media.get_message_image()))
userid=userid))
return _hash return _hash
def batch_download(self, def batch_download(self,