From dccded2d3ee16fa16d34ea49aaf101152805ec49 Mon Sep 17 00:00:00 2001 From: thsrite Date: Thu, 28 Sep 2023 12:03:18 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=B8=8B=E8=BD=BD=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/download.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/chain/download.py b/app/chain/download.py index 20f29582..05db5cf6 100644 --- a/app/chain/download.py +++ b/app/chain/download.py @@ -39,8 +39,10 @@ class DownloadChain(ChainBase): 发送添加下载的消息 """ msg_text = "" + if userid: + msg_text = f"用户:{userid}" if torrent.site_name: - msg_text = f"站点:{torrent.site_name}" + msg_text = f"{msg_text}\n站点:{torrent.site_name}" if meta.resource_term: msg_text = f"{msg_text}\n质量:{meta.resource_term}" if torrent.size: