Fix ytdl scripts to have a proper fallback

main
trivernis 11 months ago
parent 062bdde40a
commit 850402e552
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -1,3 +1,8 @@
export def `ytdl playlist` [url: string] { export def `ytdl playlist` [url: string] {
yt-dlp --yes-playlist -N 8 --playlist-reverse --embed-metadata --sponsorblock-mark sponsor -f "bv[height=1080][vcodec~='av01\\..*']+ba / b[height=1080]" -o "%(uploader)s - %(title)s - %(id)s.%(ext)s" $url yt-dlp --yes-playlist -N 8 --playlist-reverse --embed-metadata --sponsorblock-mark sponsor -f "bv[vcodec~='av01\\..*']+ba / bv+ba" -o "%(uploader)s - %(title)s - %(id)s.%(ext)s" $url
}
export def `ytdl playlist 1080p` [url: string] {
yt-dlp --yes-playlist -N 8 --playlist-reverse --embed-metadata --sponsorblock-mark sponsor -f "bv[height=1080][vcodec~='av01\\..*']+ba / bv[height=1080]+ba" -o "%(uploader)s - %(title)s - %(id)s.%(ext)s" $url
} }

Loading…
Cancel
Save