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
#!/usr/bin/ruby | |
#usage: youtube-to-mp3 <youtube-url> | |
#example: youtube-to-mp3 http://www.youtube.com/playlist?list=PL398CE05652474A1E | |
#desc: downloads a single youtube vid or a playlist, then converts to mp3. | |
# Requires youtube-dl and ffmpeg | |
url = ARGV[0] | |
system("youtube-dl -citA #{url}") |