GNOME Bugzilla – Bug 351667
doesn't fetch album art correctly for non-ascii artists/albums
Last modified: 2010-01-03 09:20:54 UTC
Please describe the problem: At least, all of my tracks that have non-ascii chars in their name never show album art. This includes: Queensrÿche Béla Fleck and the Flecktones (the non-accented version works) Shakira (album ¿Dónde Están los Ladrones?) So, my only assumption is that there's an encoding issue somewhere in the stack. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Isn't this a duplicate of bug 347818?
Possibly. The original bug there was about it getting the wrong cover... it appears to have expanded in scope since I filed this one.
This is failing due to the Amazon search query behaviour. Surprisingly Amazon seems to optimize their search by using strippped down keywords which appears to also be locale independent (doesn't matter if you search on .com, .jp, .br, etc.). Example: "Salomé" vs "Salome", gives correct results for the non-accented version and similar. By "converting" everything to non-accented characters the album search seems to return correct covers. This was marked as a TODO in: http://svn.gnome.org/viewcvs/rhythmbox/trunk/plugins/artdisplay/artdisplay/AmazonCoverArtSearch.py?view=markup Anyone knows an efficient way to shift the string characters automatically to non-accented characters? (Instead of just using .replace, some regex or lookup table)
Banshee seems to use a different method for fetching covers. They look up the ASIN (Amazon Standard Identification Number) by way of MusicBrainz and uses that to find the correct cover. I'm not sure if this is feasible for Rhythmbox, but it does seem like a less error prone way. Could be interesting to compare the methods of other applications which uses Amazon for cover art, like Amarok.
(In reply to comment #4) > Banshee seems to use a different method for fetching covers. They look up the > ASIN (Amazon Standard Identification Number) by way of MusicBrainz and uses > that to find the correct cover. > I'm not sure if this is feasible for Rhythmbox, but it does seem like a less > error prone way. Support for this should be relatively straightforward to add: bug #410684.
Amazon cover art search is no more, and the sites we use now handle non-ascii data correctly.