2006-12-22

My first Rhythmbox plugin

Yesterday evening I threw together my first Rhythmbox plugin! Like Luke’s InfoSender for Winamp, it posts the currently playing artist and song title to a webpage. I use it to update my sidebar.

Just put the Python source and config file (see below) into ~/.gnome2/rhythmbox/plugins or /usr/share/rhythmbox/plugins and restart Rhythmbox to enable the plugin. Its name is posttune.

To configure the plugin, change the BASE_URL variable to point to your own page. The artist’s name and song title are appended to BASE_URL, then the plugin makes a GET request to the URL.

[RB Plugin]
Loader=python
Module=posttune
IAge=1
Name=Tune poster
Description=Posts the current artist and song title to a web form
Authors=Beat Bolli <bbolli@ewanet.ch>
Copyright=Copyright 2006 Beat Bolli
Website=http://www.drbeat.li/py/

12:13 [/software/python] rhythmbox_posttune Google Trackback
Tags: