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