I was able to download private videos by using the
--cookies route. I had to first format the cookies to Netscape format, which is an option in EditThisCookie. Remember you’ll not only need the cookies for https://youtube.com but also for https://accounts.google.com. You’ll have to do this manually with EditThisCookie Chrome plugin.
I then needed to fix the format of the cookies generated with EditThisCookie with
curl. Something like:
curl -b oldcookiefile.txt --cookie-jar newcookiefile.txt 'https://youtube.com'.
--cookies flag can then be used with youtube-dl to download private videos.
I also created a blog post describing what I learned in more detail.
You may Also Like: