Ruby radio player
Small systray program for playing online radio streams. It fetches information on the current song and current show from the radio's webpage and displays them in a tooltip.
I've been listening to online radio for a while and I felt it was annoying that you
can't see the artist and title of the current song. The frustrating bit is that some
(read: most) of the radio stations have dedicated web pages listing the currently
playing song and program schedule. So the information exists... it's just not aggregated.
So I aggregated it.
For more color and style :p I also fetch the album cover from musicbrainz when available. Finding
it is a bit tricky so it doesn't work correctly 100% of the time.
Install
- From the source package:
You'll fist need to install the following packages it depends on [1]: ruby, ruby-gnome2, libgstreamer0.10-ruby1.8, libjson-ruby, gstreamer0.10-fluendo-mp3, gstreamer0.10-gnomevfs, gstreamer0.10-alsa, gstreamer0.10-plugins-bad [2]. - Debian/Ubuntu deb from repository.
- add the following repository url [4]
- deb http://ppa.launchpad.net/grimdonkey/ubuntu gutsy main
- run 'apt-get update && apt-get install sradio'
Extending
Information and configuration of supported radios is stored in
json files (/usr/share/sradio/radios)
If you'd like to hear a specific other station, mail me the details and I
will happily add it to the package.
If you're the 'do-it-yourself' kind of guy, please check radio.json.sample
for details on creating the config files. If you think you need aditional
config options for parsing, please mail me the details, and i'll update
accordingly.
If you think the code sucks (i know it does, but... as they say... "it works for me") and you want
to fix it, I'll happily accept suggestions / patches.
If you... err.. you get the idea.. whatever you need.. mail me.
Notes
- ^ I know, I know.. that's a lot of dependencies. But if you don't already have them installed, that's because you don't use many ruby/gnome/gstreamer apps. And that's a damn shame, cause ruby, gnome and gstreamer are all wicked kewl.
- ^ You need the 'faad' decoder. That's listed in gstreamer0.10-plugins-bad on the gstreamer website, but in Ubuntu is included in gstreamer0.10-plugins-bad-multiverse. There might be licensing issues with it... not sure about other distros.
- ^ All code licenced MIT. The installer rakefile and tasks taken from the alexandria project. MIT licensed. The 3 icons used are shamelessly stolen from the 'dropline-neu' and 'nuoveXT' gnome icon packs.
- ^ Don't know how to do that? Read this.