download playlist video youtube code example
Example 1: youtube dl download playlist mp3
youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" <url to playlist>
Example 2: how to know if a youtube video has a playlist
site:youtube.com inurl:list EVqEpQ1rDIw