Don't convert audio if necessary

pull/431/head
Jean-Francois Simoneau 2024-04-30 14:10:55 -04:00
parent 637f456de3
commit 2142e759aa
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ def get_format(format: str, quality: str) -> str:
if format in AUDIO_FORMATS:
# Audio quality needs to be set post-download, set in opts
return "bestaudio/best"
return f"bestaudio[ext={format}]/bestaudio/best"
if format in ("mp4", "any"):
if quality == "audio":