Downloading the Watch Later YouTube Playlist

Sun Oct 01 2023

I sort of knew about yt-dlp, a fork of youtube-dl with some extra features, but I never really used it until recently. The goal I was trying to archieve was to download all the videos I’ve been storing in my Watch Later playlist over time so I could see them on my TV, without ads, and with Spanish subtitles.

As usually with awesome CLI tools, the solution was one command away!

yt-dlp --sub-lang "es-en" \
    --write-auto-sub \
    --embed-subs \
    --merge-output-format mp4 \
    -S acodec:aac -S vcodec:h264 \
    -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' \
    :ytwatchlater --cookies-from-browser brave

Let’s break it down:

And that’s it! The command will download all the videos in the playlist and put them in your current directory. Enjoy!

← Back to home!