- ..raw:: html
<html><body><p>I've added something "cool" to this blog. On the right in the sidebar there's now a section called "Now playing". This information is updated every time <a href="http://www.xmms.org/">XMMS</a> changes to a new song. So every time I load a new track, the title and artist information is updated.
The XMMS "Song Change" plugin is configured to call a shellscript with the song title as a parameter. This shell script then uses curl to send the song title to a PHP script that adds the title to a row in the wordpress options database. Every time the sidebar template is loaded, the plugin outputs the "currently playing" MP3.
In the future I might add something to show that the information is very old if necessary. I'm also thinking about removing "Various" or "Various artists" from song titles when necessary.
This is really nice, I've noticed that when XMMS is closed, the "Song Change" plugin sends an empty song title to my script. So an empty field in the database means nothing is playing. Also, "Various" and "Various Artists" is removed from the title, including additional adornments like - or / and spaces.
You can download the first release of this plugin at the new <a href="http://www.ramdyne.nl/wordpress/wordpress-plugins/">Wordpress plugins</a> page.
Version 0.2 is available at the <a href="http://www.ramdyne.nl/wordpress/wordpress-plugins/">Wordpress plugins</a> page.</p></body></html>