From 178c3028de4f5647da54d3b70fef697b8b7516e6 Mon Sep 17 00:00:00 2001 From: nex Date: Wed, 7 Feb 2024 16:56:41 +0000 Subject: [PATCH] Fix TypeError in opusinate --- src/cogs/ffmeta.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cogs/ffmeta.py b/src/cogs/ffmeta.py index f43fbfa..aad583f 100644 --- a/src/cogs/ffmeta.py +++ b/src/cogs/ffmeta.py @@ -125,11 +125,11 @@ class FFMeta(commands.Cog): discord.Option( int, description="The bitrate in kilobits of the resulting audio from 1-512", - default=64, + default=96, min_value=1, max_value=512 ) - ] = 64, + ] = 96, mono: typing.Annotated[ bool, discord.Option( @@ -176,7 +176,7 @@ class FFMeta(commands.Cog): except json.JSONDecodeError: pass - duration = data["format"].get("duration", 195) + duration = float(data["format"].get("duration", 195)) max_end_size = ((bitrate * duration * channels) / 8) * 1024 if max_end_size > (24.75 * 1024 * 1024): return await ctx.respond(