mirror of https://github.com/alexta69/metube
Don't convert audio if necessary
parent
637f456de3
commit
2142e759aa
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue