Merge pull request #431 from jfsimoneau/no-audio-convert

Don't convert audio if unnecessary
pull/441/head
Alex 2024-05-02 21:26:27 +03:00 committed by GitHub
commit 63f11fb1ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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":