irssi last.fm now playing script
I wrote an irssi script that displays the most recent last.fm audioscrobbled track. You can find it here; it is published under a BSD-style license.
The script polls the specified last.fm 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/lastfm.pl
, load it with /script load lastfm.pl
and start a new session with /lastfm start your_lastfm_username
.
/lastfm help
outputs usage details.
Suggestions and bug reports are welcome.