Last active
December 20, 2015 21:49
-
-
Save radex/6200611 to your computer and use it in GitHub Desktop.
Youtube music ripper (for when you find something you can't find anywhere else). Add to your bashrc/zshrc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# `yt http://www.youtube.com/watch?v=...` | |
# Downloads a video from youtube, extracts audio out of it and saves as a 256kbps mp3 in Downloads | |
# | |
# Requires youtube-dl and ffmpeg | |
# (OSX: just `brew install youtube-dl ffmpeg`) | |
yt () { | |
youtube-dl $1 -o ~/Downloads/%\(title\)s.%\(ext\)s -x --audio-format mp3 --audio-quality 256 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment