Skip to content

Instantly share code, notes, and snippets.

@brunoro
Created June 8, 2017 05:23
Show Gist options
  • Save brunoro/c4fcb8ba8cdb896b8c272d2bb16b1b84 to your computer and use it in GitHub Desktop.
Save brunoro/c4fcb8ba8cdb896b8c272d2bb16b1b84 to your computer and use it in GitHub Desktop.
Download youtube song playlists
#!/bin/bash
PLAYLIST_URL=$1
youtube-dl \
--yes-playlist --ignore-errors \
--extract-audio --audio-quality 0 --format 'mp3/ogg/m4a/flac/wav' \
--metadata-from-title '%(artist)s - %(title)s' --continue -o '%(playlist)s/%(title)s.%(ext)s' \
$PLAYLIST_URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment