Merge pull request #431 from jfsimoneau/no-audio-convert
Don't convert audio if unnecessary
This commit is contained in:
commit
63f11fb1ea
|
|
@ -27,7 +27,7 @@ def get_format(format: str, quality: str) -> str:
|
||||||
|
|
||||||
if format in AUDIO_FORMATS:
|
if format in AUDIO_FORMATS:
|
||||||
# Audio quality needs to be set post-download, set in opts
|
# 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 format in ("mp4", "any"):
|
||||||
if quality == "audio":
|
if quality == "audio":
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue