From 4fec6aede49ed84a92315fae1e7752fc9c00b096 Mon Sep 17 00:00:00 2001 From: WithdewHua Date: Sat, 2 Sep 2023 16:24:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=88=A0=E7=A7=8D=E6=8F=92=E4=BB=B6=E9=80=9A=E7=9F=A5=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E4=B8=AD=E5=A4=9A=E4=BD=99=E7=9A=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/plugins/torrentremover/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/plugins/torrentremover/__init__.py b/app/plugins/torrentremover/__init__.py index d0e3a895..a02cd6b7 100644 --- a/app/plugins/torrentremover/__init__.py +++ b/app/plugins/torrentremover/__init__.py @@ -567,7 +567,7 @@ class TorrentRemover(_PluginBase): return text_item = f"{torrent.get('name')} " \ f"来自站点:{torrent.get('site')} " \ - f"大小:{StringUtils.str_filesize(torrent.get('size'))} GB" + f"大小:{StringUtils.str_filesize(torrent.get('size'))}" # 暂停种子 downlader_obj.stop_torrents(ids=[torrent.get("id")]) logger.info(f"自动删种任务 暂停种子:{text_item}") @@ -580,7 +580,7 @@ class TorrentRemover(_PluginBase): return text_item = f"{torrent.get('name')} " \ f"来自站点:{torrent.get('site')} " \ - f"大小:{StringUtils.str_filesize(torrent.get('size'))} GB" + f"大小:{StringUtils.str_filesize(torrent.get('size'))}" # 删除种子 downlader_obj.delete_torrents(delete_file=False, ids=[torrent.get("id")]) @@ -594,7 +594,7 @@ class TorrentRemover(_PluginBase): return text_item = f"{torrent.get('name')} " \ f"来自站点:{torrent.get('site')} " \ - f"大小:{StringUtils.str_filesize(torrent.get('size'))} GB" + f"大小:{StringUtils.str_filesize(torrent.get('size'))}" # 删除种子 downlader_obj.delete_torrents(delete_file=True, ids=[torrent.get("id")])