From fbfce9df528268bcf90a576051376a0bb298792f Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 15 Jun 2023 18:14:28 +0800 Subject: [PATCH] fix --- 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 edc0cc99..0dcf079b 100644 --- a/app/chain/download.py +++ b/app/chain/download.py @@ -485,8 +485,10 @@ class DownloadChain(ChainBase): # 发送消息 title = f"共 {len(torrents)} 个任务正在下载:" messages = [] + index = 1 for torrent in torrents: - messages.append(f"{torrent.title} " + messages.append(f"{index}. {torrent.title} " f"{StringUtils.str_filesize(torrent.size)} " f"{round(torrent.progress * 100, 1)}%") + index += 1 self.post_message(title=title, text="\n".join(messages))