Page 1 of 1

getmp3

Posted: Tue Jul 07, 2015 12:11 pm
by opt1k
This is rather silly, but I've got an xterm open 24/7 that only serves one purpose....


opt1k@frey:~/Documents/music$ cat `which getmp3`

Code: Select all

#!/bin/bash

function main {
echo -n "CONVERT TO MP3 URL> "
read link
youtube-dl -x --audio-format mp3 --audio-quality 0 "$link"
main
}

main
opt1k@frey:~/Documents/music$

Re: getmp3

Posted: Tue Jul 07, 2015 12:35 pm
by wuxmedia
smart, I should do that.
We have a thread for bash functions BTW, would fit in there just right.

Re: getmp3

Posted: Tue Jul 07, 2015 1:29 pm
by rhowaldt
ha, that's cool :)
depends on youtube-dl i see - had no idea it could do this. thanks!