diff --git a/dot_local/share/scripts/ytdl.nu b/dot_local/share/scripts/ytdl.nu new file mode 100644 index 0000000..340ff69 --- /dev/null +++ b/dot_local/share/scripts/ytdl.nu @@ -0,0 +1,3 @@ +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 +} diff --git a/private_dot_config/nushell/config.nu b/private_dot_config/nushell/config.nu index 36f6643..ade28bb 100644 --- a/private_dot_config/nushell/config.nu +++ b/private_dot_config/nushell/config.nu @@ -430,7 +430,10 @@ source ~/.config/nushell/fnm.nu # broot source ~/.config/broot/launcher/nushell/br +# ytdl +source ~/.local/share/scripts/ytdl.nu + # utility commands -source ~/.config/nushell/utils.nu +# source ~/.config/nushell/utils.nu source /home/trivernis/.config/broot/launcher/nushell/br