From e7b84283f7d96c6d16f2d02ea6ad1674ff075be5 Mon Sep 17 00:00:00 2001 From: Kilian Lackhove Date: Fri, 14 Dec 2012 10:12:00 +0100 Subject: [PATCH] MusicBrainzPlugin: use normalized artist names. This fixes releases retrieval for artists names containing weird characters, such as the ellipsis in "... And you will know us by the trail of dead" --- src/infoplugins/generic/musicbrainz/MusicBrainzPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infoplugins/generic/musicbrainz/MusicBrainzPlugin.cpp b/src/infoplugins/generic/musicbrainz/MusicBrainzPlugin.cpp index 5a6967cc1..a7fc23bb8 100644 --- a/src/infoplugins/generic/musicbrainz/MusicBrainzPlugin.cpp +++ b/src/infoplugins/generic/musicbrainz/MusicBrainzPlugin.cpp @@ -176,7 +176,7 @@ MusicBrainzPlugin::gotReleaseGroupsSlot() QString groupTitle = releaseGroupsNL.at(i).firstChildElement("title").text(); QString a = releaseGroupsNL.at(i).firstChildElement( "artist-credit" ).firstChildElement( "name-credit" ).firstChildElement( "artist" ).firstChildElement( "name" ).text(); QString id = releaseGroupsNL.at(i).firstChildElement( "artist-credit" ).firstChildElement( "name-credit" ).firstChildElement( "artist" ).attribute( "id" ); - if ( !albums.contains( groupTitle ) && hash["artist"] == a && id == popularId ) + if ( !albums.contains( groupTitle ) && id == popularId && a.normalized( QString::NormalizationForm_KC ) == hash["artist"].normalized( QString::NormalizationForm_KC ) ) { albums << groupTitle; tDebug() << Q_FUNC_INFO << groupTitle;