From 4de5a5e7afaf1f6c06b0a30f78e66cc4d829d6f8 Mon Sep 17 00:00:00 2001 From: thsrite Date: Wed, 9 Aug 2023 08:29:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20=E5=BC=80=E5=A7=8B=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=A7=8D=E5=AD=90=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/chain/download.py b/app/chain/download.py index 7785eabf..eb863709 100644 --- a/app/chain/download.py +++ b/app/chain/download.py @@ -36,7 +36,7 @@ class DownloadChain(ChainBase): if meta.resource_term: msg_text = f"{msg_text}\n质量:{meta.resource_term}" if torrent.size: - if str(torrent.size).isdigit(): + if str(torrent.size).replace(".", "").isdigit(): size = StringUtils.str_filesize(torrent.size) else: size = torrent.size From 43ed54717ea91a35752505609ffd4a9c912ea663 Mon Sep 17 00:00:00 2001 From: thsrite Date: Wed, 9 Aug 2023 08:38:28 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=20=E8=87=AA=E5=8A=A8=E5=88=A0=E7=A7=8D?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/plugins/torrentremover/__init__.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/app/plugins/torrentremover/__init__.py b/app/plugins/torrentremover/__init__.py index ed92a9cf..d312f7da 100644 --- a/app/plugins/torrentremover/__init__.py +++ b/app/plugins/torrentremover/__init__.py @@ -367,6 +367,22 @@ class TorrentRemover(_PluginBase): } ] }, + { + 'component': 'VCol', + 'props': { + 'cols': 6 + }, + 'content': [ + { + 'component': 'VTextField', + 'props': { + 'model': 'errorkeywords', + 'label': '错误信息关键词', + 'placeholder': '支持正式表达式' + } + } + ] + }, { 'component': 'VCol', 'props': { @@ -457,7 +473,7 @@ class TorrentRemover(_PluginBase): ] } ], { - "enable": False, + "enabled": False, "notify": False, "onlyonce": False, "action": 'pause',