Comment 22 for bug 976067

Revision history for this message
Kim Nguyễn (kim.nguyen) wrote :

Hi,

as far as I can see there are two providers for local files, banshee and rhythmbox that behaves like this:

Banshee:
(1) Loads whatever album art is available at the time of import and populates a directory in ~/.cache/ with
album arts previews. This album art can be: (a) embedded in the mp3 files (b) an album.png/jpg file in the
track directory (c) retrieve online (using a plugin).
(2) If the album-art is added (but not modified, for instance, if a track did not have any album art and an
album.png file is dropped in the track's directory) the album-art is updated in the cache directory.
* Problem (mild) if someone adds new music files to his/her Music directory, the album art will only show in
the music-lens *after* banshee has been launched (to update its database and ~/.cache directory)

Rhythmbox:
(1) Loads the album art (a) embedded in the file or (b) retrieved online (via a plugin I think) but does not
honor album.png and such files.
(2) Album art is only loaded when a song is played.
* Problem (this bug report): the album-art does not show up until the song has been played in rhythmbox,
which is far from optimal.
-----------------------
unity-lens-music does the following:
Banshee provider: if the thumbnail is not available through banshee, return a default icon
Rhythmbox provider: if the thumbnail is not available through rhythmbox, try through
nautilus thumbnail cache, then try to read a 'cover' directory in ~/.cache/rhyhmbox which
should contain a thumbnail for the track. If all that fails, return the default icon.
-----------------------
I'm attaching the following proof of concept patch which tries to load the following files:
album, cover, folder (optionally prefixed with a "." and ending with ".png" or ".jpg") from
the directory containing the track.

An updated package is available for quantal on my ppa:
https://launchpad.net/~kim.nguyen/+archive/ppa

I've done some limited testing with either banshee or rhythmbox installed, wiping their
caches and re-importing my mp3 files. The result seems ok.

Enjoy.