Skip to content

Commit

Permalink
Merge pull request #574 from PikuZheng/add-worst-format
Browse files Browse the repository at this point in the history
add "worst" format
  • Loading branch information
alexta69 authored Jan 15, 2025
2 parents ec38f90 + a77f105 commit 96763cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/dl_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
2 changes: 2 additions & 0 deletions ui/src/app/formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const Formats: Format[] = [
{ id: '1080', text: '1080p' },
{ id: '720', text: '720p' },
{ id: '480', text: '480p' },
{ id: 'worst', text: 'Worst' },
{ id: 'audio', text: 'Audio Only' },
],
},
Expand All @@ -34,6 +35,7 @@ export const Formats: Format[] = [
{ id: '1080', text: '1080p' },
{ id: '720', text: '720p' },
{ id: '480', text: '480p' },
{ id: 'worst', text: 'Worst' },
],
},
{
Expand Down

0 comments on commit 96763cc

Please sign in to comment.