From 0170c59f1217adb3f3d3df26e4cf2ba05da573ad Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Mon, 15 Apr 2024 19:28:34 +0100 Subject: [PATCH] Support video transcriptions --- .idea/dataSources.local.xml | 2 +- .idea/misc.xml | 2 +- cogs/other.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.idea/dataSources.local.xml b/.idea/dataSources.local.xml index 1fde411..cdf09a8 100644 --- a/.idea/dataSources.local.xml +++ b/.idea/dataSources.local.xml @@ -1,6 +1,6 @@ - + " diff --git a/.idea/misc.xml b/.idea/misc.xml index c134054..657e23f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/cogs/other.py b/cogs/other.py index 2ba1f4d..42fc98b 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -740,7 +740,7 @@ class OtherCog(commands.Cog): _ft = "wav" for attachment in message.attachments: - if attachment.content_type.startswith("audio/"): + if attachment.content_type.startswith(("audio/", "video/")): _ft = attachment.filename.split(".")[-1] break else: