From 215d9e0421419294000c4bd89f18a677237c607a Mon Sep 17 00:00:00 2001 From: thsrite Date: Mon, 7 Aug 2023 21:05:18 +0800 Subject: [PATCH] fix bug --- app/chain/download.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/chain/download.py b/app/chain/download.py index 1e5e98bb..47046606 100644 --- a/app/chain/download.py +++ b/app/chain/download.py @@ -145,8 +145,7 @@ class DownloadChain(ChainBase): torrent_site=_torrent.site_name ) # 发送消息 - self.post_download_message(meta=_meta, mediainfo=_media, torrent=_torrent, - channel=channel, userid=userid) + self.post_download_message(meta=_meta, mediainfo=_media, torrent=_torrent, channel=channel) # 下载成功后处理 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"种子链接:{_torrent.enclosure}\n" f"错误信息:{error_msg}", - image=_media.get_message_image(), - userid=userid)) + image=_media.get_message_image())) return _hash def batch_download(self,