mirror of
https://github.com/alexta69/metube.git
synced 2025-04-03 20:27:36 +03:00
add "worst" format
This commit is contained in:
parent
ec38f905b4
commit
a77f10541a
2 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,7 @@ def get_format(format: str, quality: str) -> str:
|
|||
return "bestaudio/best"
|
||||
# video {res} {vfmt} + audio {afmt} {res} {vfmt}
|
||||
vfmt, afmt = ("[ext=mp4]", "[ext=m4a]") if format == "mp4" else ("", "")
|
||||
vres = f"[height<={quality}]" if quality not in ("best", "best_ios") else ""
|
||||
vres = f"[height<={quality}]" if quality not in ("best", "best_ios", "worst") else ""
|
||||
vcombo = vres + vfmt
|
||||
|
||||
if quality == "best_ios":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue