argp         posts     research     bugs

irssi now playing script

I wrote an irssi script that displays the most recent audioscrobbled track. You can find it here; it is published under a BSD-style license.

The script polls the specified profile for the most recent audioscrobbled track every $timeout_seconds (default is 120). The track is displayed only in the channels specified in the @channels array or, if @channels is undefined, in the active window. Be careful if you want to change the value of $timeout_seconds; too aggressive polling may get your IP blacklisted.

Put it in ~/.irssi/scripts/, load it with /script load and start a new session with /lastfm start your_lastfm_username. /lastfm help outputs usage details.

Suggestions and bug reports are welcome.