4 ms·
I have a file under ~/bin called youtube-mp3 which has this one-liner: exec $HOME/d/youtube-dl/youtube-dl -t -x --audio-format=mp3 "$@" (Edit: I'm sure th
by rwmj 7y ago
I have a file under ~/bin called youtube-mp3 which has this one-liner:
exec $HOME/d/youtube-dl/youtube-dl -t -x --audio-format=mp3 "$@"
(Edit: I'm sure this script does a lot more, but making ytdl download only the audio is fairly simple. Note the above command converts the file to mp3 which some people may not want to do because it's lossy.)