Merge pull request #47 from thsrite/main

This commit is contained in:
jxxghp 2023-08-09 09:03:38 +08:00 committed by GitHub
commit 365d3f6b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 2 deletions

View File

@ -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

View File

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