Fix low-quality extracted audio

This commit is contained in:
Nexus 2023-12-02 17:46:14 +00:00
parent 4c7264aada
commit 76b17aca5c
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -1037,7 +1037,7 @@ class OtherCog(commands.Cog):
args["proxy"] = proxy_url
if extract_audio:
args["postprocessors"] = [
{"key": "FFmpegExtractAudio", "preferredquality": "24", "preferredcodec": "opus"}
{"key": "FFmpegExtractAudio", "preferredquality": "96", "preferredcodec": "best"}
]
args["format"] = args["format"] or f"(ba/b)[filesize<={MAX_SIZE_MB}M]/ba/b"