mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
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"
This commit is contained in:
parent
b02d33340b
commit
e7b84283f7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user