Skip to content

Instantly share code, notes, and snippets.

@danikaze
Last active November 21, 2018 03:01
Show Gist options
  • Save danikaze/69e378dd56db3b52fb8a6695981e5135 to your computer and use it in GitHub Desktop.
Save danikaze/69e378dd56db3b52fb8a6695981e5135 to your computer and use it in GitHub Desktop.
Download MP3s from youtube | requires youtube-dl (https://rg3.github.io/youtube-dl/)
# Download a complete youtube playlist like
# ymp3list START_VIDEO_INDEX PLAYLIST_URL
alias ymp3list="youtube-dl.exe -o \"%(title)s.%(ext)s\" --extract-audio --audio-quality 0 --audio-format mp3 --playlist-start $1 $2"
# Download a single video
# mp3dl VIDEO_URL
alias mp3dl="youtube-dl.exe -o \"%(title)s.%(ext)s\" --extract-audio --audio-quality 0 --audio-format mp3 $1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment