Extracting individual YouTube video URLs from Playlists with yt-dlp

Since I’m a longtime Raindrop.io user, I handle plaintext, line-broken lists of raw URLs a lot, though I’m used to having to get them to that state myself by some fiddling or another.

I was very delighted, then, to find that my very first attempt at the very first solution I found in a search engine on a journey to figure out what the fuck Rally Phonk is resulted in a plain text list!

Comment
byu/angentanewbe from discussion
inyoutubedl

u/werid’s reply to a original poster in the youtubedl subreddit asking “Is it possible to extract individual videos links from YouTube playlist using yt-dlp or youtube-dl” is to credit for my success:

yt-dlp --flat-playlist -i --print-to-file url file.txt "playlist-url"