Welcome to Geoffrey Swift's βlog. Please subscribe to the Atom feed.


Radio Play list

While listening to internet radio stations, I found it a bit tedious to have to visit the radio station's site and find the link to tune in. This would then clear out the play list in media player.

My solution is a php page, which aggregates the play lists from various sites: http://www.trollied.org/~blimey/radio.m3u. Now I can channel-hop, just as I would when watching TV!

This wasn't so difficult to implement, the radio stations use either file format of m3u, pls or asx. The asx file format was tackled with some xsl, pls files are parsed with php's parse_ini() and m3u was absolutely effortless. I used the curl library in php to make a HTTP HEAD requests, to check each of the streams are up.

This is something I wrote for my own use, but I realised others might find it useful. I started a thread advertising this on the dogsonacid forum, so it will be interesting to see if there's any feedback.

Comments for this post are now closed.