Skip to content

Instantly share code, notes, and snippets.

@funky-monkey
Created October 19, 2021 11:56
Show Gist options
  • Save funky-monkey/17d2e3428ef9b6de3de94deae448b711 to your computer and use it in GitHub Desktop.
Save funky-monkey/17d2e3428ef9b6de3de94deae448b711 to your computer and use it in GitHub Desktop.

Download YouTube playlist videos in separate directory indexed by video order in a playlist

youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re

Download all playlists of YouTube channel/user keeping each playlist in separate directory:

youtube-dl -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/user/TheLinuxFoundation/playlists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment