Don't convert audio if necessary

This commit is contained in:
Jean-Francois Simoneau 2024-04-30 14:10:55 -04:00
parent 637f456de3
commit 2142e759aa

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":