Description: A simple karamba theme that checks xmms for the currently playing album, downloads the photo from amazon.com, and displays the picture on the desktop.
It only requires a single line in the .theme file, and should fit in well with just about any existing theme - in the screenshot it's shown above the excellent GlassPlayer.
This is more of a proof of concept than anything else. On it's own it is rather plain, so feel free to incorporate it into any of your existing karamba applets.
Documentation: The only interesting option is the size of the photo, which is the argument to the perlscript in the .theme file.
The album photos are cached in your home directory at .albumart. If you have many albums, this could get huge, though each picture is only around 20k, so with 100 albums you're only burning 2.4 megs. If people are finding this a problem, email me and I'll adjust the script to make the cached pictures smaller. Resizing according to the size parameter is done on the fly, so don't worry about multiple copies of the same album picture being stored.
NOTE: Calling a perlscript is an expensive operation, because of the JIT ing. The speedup is to have xmms call the script every time the song changes using the songchange.so plugin, and just have the picture load from ~/.albumart/current.png, updating every 10000 ms or so.
Requires: XMMS: xmms-ctrl
PERL: MP3::Tag Image::Imlib2, which in turn requires Imlib2 (http://freshmeat.net/projects/imlib2/)Last changelog:
Version 0.2: - Sped up performance considerably by caching name of song. - Eliminated the "download random album if artistname is known" bug
Ratings & Comments
0 Comments