Skip to content

Commit

Permalink
Ignore case when comparing artists in musicbrainz album results
Browse files Browse the repository at this point in the history
  • Loading branch information
theli-ua committed May 19, 2015
1 parent 7628273 commit ba91dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infoplugins/generic/musicbrainz/MusicBrainzPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,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 ) && id == popularId && a.normalized( QString::NormalizationForm_KC ) == hash["artist"].normalized( QString::NormalizationForm_KC ) )
if ( !albums.contains( groupTitle ) && id == popularId && a.normalized( QString::NormalizationForm_KC ).toCaseFolded() == hash["artist"].normalized( QString::NormalizationForm_KC ).toCaseFolded() )
{
albums << groupTitle;
tDebug() << Q_FUNC_INFO << groupTitle;
Expand Down

0 comments on commit ba91dba

Please sign in to comment.