Comment

Comment by thot_experiment

Season to taste but I have this as `yt.bat` on my path and just hit Win `yt [paste youtube url]` and it will download it, cut out sponsor segments and queue it up in my VLC.

    youtube-dlp -f "bestvideo[height<=1440]+bestaudio/best[height<=1440]" --add-metadata --no-mtime --sponsorblock-remove default %* -o C:\tmp\ytdlc\%%(title)s-%%(id)s.%%(ext)s --exec "\"c:\Program Files\VideoLAN\VLC\vlc.exe\" --one-instance --playlist-enqueue {}"

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton