From 357f0f9edf6eb6991a529a6f50b5dc54c8187fe3 Mon Sep 17 00:00:00 2001 From: nex Date: Thu, 27 Apr 2023 11:20:37 +0100 Subject: [PATCH] Fix file size in output fix --- .idea/dataSources.local.xml | 2 +- cogs/other.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.idea/dataSources.local.xml b/.idea/dataSources.local.xml index 12243b8..4a7a70b 100644 --- a/.idea/dataSources.local.xml +++ b/.idea/dataSources.local.xml @@ -1,6 +1,6 @@ - + " diff --git a/cogs/other.py b/cogs/other.py index ebb4b89..1b65669 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -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"