Fix file size in output fix

This commit is contained in:
Nexus 2023-04-27 11:20:37 +01:00
parent bcbc96bfeb
commit 357f0f9edf
Signed by: nex
GPG key ID: 0FA334385D0B689F
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="dataSourceStorageLocal" created-in="PY-231.8109.197">
<component name="dataSourceStorageLocal" created-in="PY-223.8836.43">
<data-source name="main" uuid="28efee07-d306-4126-bf69-01008b4887e2">
<database-info product="SQLite" version="3.39.2" jdbc-version="2.1" driver-name="SQLite JDBC" driver-version="3.39.2.0" dbms="SQLITE" exact-version="3.39.2" exact-driver-version="3.39">
<identifier-quote-string>&quot;</identifier-quote-string>

View file

@ -813,7 +813,7 @@ class OtherCog(commands.Cog):
formats = data["formats"]
paginator = commands.Paginator()
for fmt in formats:
fs = round(fmt.get("filesize", fmt.get("fragments", [1])) / 1024 ** 2, 1)
fs = round(fmt.get("filesize", len(fmt.get("fragments", [1]))) / 1024 ** 2, 1)
paginator.add_line(
"* {0[format_id]}:\n"
"\t- Encoding: {0[vcodec]} + {0[acodec]}\n"