Skip to content

Instantly share code, notes, and snippets.

@mperlet
Created August 23, 2017 06:48
Show Gist options
  • Save mperlet/3f3a9a4cc28f214efc59c24fb14c683a to your computer and use it in GitHub Desktop.
Save mperlet/3f3a9a4cc28f214efc59c24fb14c683a to your computer and use it in GitHub Desktop.
Convert Youtube-Videos or Playlists to mp3
#!/bin/bash
# Example: $ yt2mp3 "https://www.youtube.com/playlist?list=PL63F1E17EE312CC7D"
function yt2mp3 () {
youtube-dl -i -t --extract-audio --audio-format mp3 "$1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment