Merge pull request #47 from thsrite/main

This commit is contained in:
jxxghp
2023-08-09 09:03:38 +08:00
committed by GitHub
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