getmp3

Submitted scripts and programs
Forum rules
Your own work only.
User avatar
opt1k
runs Stable
Posts: 35
Joined: Fri Jul 03, 2015 8:44 pm

getmp3

Unread post by opt1k » Tue Jul 07, 2015 12:11 pm

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$

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: getmp3

Unread post by wuxmedia » Tue Jul 07, 2015 12:35 pm

smart, I should do that.
We have a thread for bash functions BTW, would fit in there just right.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: getmp3

Unread post by rhowaldt » Tue Jul 07, 2015 1:29 pm

ha, that's cool :)
depends on youtube-dl i see - had no idea it could do this. thanks!
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

Post Reply