How to download all videos in a YouTube playlist?
The example command:
$ youtube-dl -f best -o "%(playlist_index)s-%(title)s.%(ext)s" https://www.youtube.com/playlist\?list\=PLu8EoSxDXHP5uyzEWxdlr9WQTJJIzr6jy
Notes:
-f best
means download the best quality%(playlist_index)s-%(title)s.%(ext)s
will produce 2 numbers starting from 01
followed by the video nameExample outputs: