Skip to content

Instantly share code, notes, and snippets.

@kawa-kokosowa
Last active March 3, 2016 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kawa-kokosowa/17784a4c44d6f2278dca to your computer and use it in GitHub Desktop.
Save kawa-kokosowa/17784a4c44d6f2278dca to your computer and use it in GitHub Desktop.
Sync music on YouTube to Local Drive with youtube-dl
#!/bin/zsh
# Sync a youtube playlist as mp3
#
# Requires youtube-dl: brew install youtube-dl
#
# Max quality.
youtube-dl -o "/Users/lillianlemmer/Music/Youtube/%(title)s.%(ext)s" \
--extract-audio --audio-format mp3 --audio-quality 0 \
--download-archive ~/.cache/youtube-dl/archive -q \
--ignore-errors \
'https://www.youtube.com/playlist?list=PLxLaYE2uXt1vFll3M2MHPdYWpVHpYiIng'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment