Support video transcriptions

This commit is contained in:
Nexus 2024-04-15 19:28:34 +01:00
parent ce1f4e92b7
commit 0170c59f12
Signed by: nex
GPG key ID: 0FA334385D0B689F
3 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="dataSourceStorageLocal" created-in="PY-233.13763.11"> <component name="dataSourceStorageLocal" created-in="PY-233.14475.56">
<data-source name="main" uuid="28efee07-d306-4126-bf69-01008b4887e2"> <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"> <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> <identifier-quote-string>&quot;</identifier-quote-string>

View file

@ -3,5 +3,5 @@
<component name="Black"> <component name="Black">
<option name="sdkName" value="Python 3.11 (LCC-bot)" /> <option name="sdkName" value="Python 3.11 (LCC-bot)" />
</component> </component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (LCC-bot)" project-jdk-type="Python SDK" /> <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (LCC-bot)" project-jdk-type="Python SDK" />
</project> </project>

View file

@ -740,7 +740,7 @@ class OtherCog(commands.Cog):
_ft = "wav" _ft = "wav"
for attachment in message.attachments: for attachment in message.attachments:
if attachment.content_type.startswith("audio/"): if attachment.content_type.startswith(("audio/", "video/")):
_ft = attachment.filename.split(".")[-1] _ft = attachment.filename.split(".")[-1]
break break
else: else: