From e00a6c19fe0a6650c19f610fe29fd7eb616babf1 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Mon, 15 Apr 2024 22:38:29 +0100 Subject: [PATCH] Fix ffprobe --- src/cogs/ffmeta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cogs/ffmeta.py b/src/cogs/ffmeta.py index 8d3ab99..9adae24 100644 --- a/src/cogs/ffmeta.py +++ b/src/cogs/ffmeta.py @@ -49,7 +49,7 @@ class FFMeta(commands.Cog): stdout, stderr = await process.communicate() if as_json: return json.loads(stdout.decode()) - return stdout.decode(errors="replace") + return stderr.decode(errors="replace") @commands.slash_command() async def ffprobe(self, ctx: discord.ApplicationContext, url: str = None, attachment: discord.Attachment = None):