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 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',