diff --git a/dot_local/share/scripts/ytdl.nu b/dot_local/share/scripts/ytdl.nu index 340ff69..421e863 100644 --- a/dot_local/share/scripts/ytdl.nu +++ b/dot_local/share/scripts/ytdl.nu @@ -1,3 +1,8 @@ + 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 }