Resolution limit
This commit is contained in:
parent
7677856d0a
commit
518e1df27c
|
@ -36,10 +36,25 @@ def main [ url: string
|
|||
}
|
||||
}
|
||||
|
||||
def "main download" [url: string] {
|
||||
yt-dlp --embed-chapters --embed-metadata --embed-subs (parse_url $url)
|
||||
def "main download" [url: string, --max-res(-m): string] {
|
||||
match ($max_res | is-empty) {
|
||||
true => {
|
||||
yt-dlp --embed-chapters --embed-metadata --embed-subs (parse_url $url)
|
||||
}
|
||||
false => {
|
||||
yt-dlp --embed-chapters --embed-metadata --embed-subs -f $'bestvideo[height<=($max_res)]+bestaudio' (parse_url $url)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def "main dl" [url: string] {
|
||||
yt-dlp --embed-chapters --embed-metadata --embed-subs (parse_url $url)
|
||||
def "main dl" [url: string, --max-res(-m): string] {
|
||||
match ($max_res | is-empty) {
|
||||
true => {
|
||||
yt-dlp --embed-chapters --embed-metadata --embed-subs (parse_url $url)
|
||||
}
|
||||
false => {
|
||||
yt-dlp --embed-chapters --embed-metadata --embed-subs -f $'bestvideo[height<=($max_res)]+bestaudio' (parse_url $url)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue