Sunday, April 1, 2012

di.fm under mpg123

Everyone now about di.fm. Under linux we can play playlists from there with audacios, but audacious ugly like my university course about compilers (it's REALLY ugly). But I still want to listen di.fm and more across station list.



Ok, what should we do to use mpg123 with station list?? It's simple)) download winamp playlist for station what you want to listen and clean it from winamp crap, in result we must get something like this

nika@nika-u:~/pls$ cat vocal_trance.pls
http://scfire-dtc-aa01.stream.aol.com:80/stream/1065
http://scfire-mtc-aa01.stream.aol.com:80/stream/1065
http://scfire-dtc-aa03.stream.aol.com:80/stream/1065
http://scfire-ntc-aa04.stream.aol.com:80/stream/1065
http://scfire-ntc-aa07.stream.aol.com:80/stream/1065
http://scfire-ntc-aa06.stream.aol.com:80/stream/1065
http://scfire-mtc-aa03.stream.aol.com:80/stream/1065
http://scfire-mtc-aa02.stream.aol.com:80/stream/1065
http://scfire-mtc-aa06.stream.aol.com:80/stream/1065
http://scfire-ntc-aa02.stream.aol.com:80/stream/1065
http://scfire-ntc-aa05.stream.aol.com:80/stream/1065
http://scfire-dtc-aa06.stream.aol.com:80/stream/1065

and simple start script

nika@nika-u:~/pls$ cat ./play_vocal.sh
mpg123 -C `cat vocal_trance.pls`

Now we can move forward with f button and backward with d button. Also we can add mp3 here and other stations)) Looks pretty simple

No comments:

Post a Comment