Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Download MP3s using youtube-dl

Add this to your .bash_profile file.

alias mp3-dl='function _(){ youtube-dl --extract-audio --audio-format mp3 --output "~/Music/%(title)s.%(ext)s" $1; };_'

On the terminal, type:

$ mp3-dl [YOUTUBE-URL]

Voila!

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