Skip to content

Commit

Permalink
fix(Ani2Alist):修复日志可能会出现的字符串除以整数的问题,限制输出浮点数长度
Browse files Browse the repository at this point in the history
  • Loading branch information
Akimio521 committed Aug 1, 2024
1 parent 4f30268 commit c419e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/modules/ani2alist/ani2alist.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ async def parse_data(_url: str = url) -> dict:
size: int = file["size"]
__url = _url + quoted_name + "?d=true"
logger.debug(
f"获取文件:{name},文件大小:{size / 1024 / 1024}MB,播放地址:{__url}"
f"获取文件:{name},文件大小:{int(size) / 1024 / 1024:.2f}MB,播放地址:{__url}"
)
_anime_dict[name] = [
size,
Expand Down

0 comments on commit c419e01

Please sign in to comment.