1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

Merge pull request #134 from crabmanX/master

some minor fixes to the musicbrainz infoplugin
This commit is contained in:
Christian Muehlhaeuser
2012-12-14 01:46:22 -08:00

View File

@@ -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;
@@ -273,7 +273,11 @@ MusicBrainzPlugin::gotRecordingsSlot()
for ( int i = 0; i < tracksNL.count(); i++ )
{
QString track = tracksNL.at(i).firstChildElement( "recording" ).firstChildElement( "title" ).text();
tracksSL << track;
if ( !tracksSL.contains( track ) )
{
tracksSL << track;
tDebug(LOGVERBOSE) << Q_FUNC_INFO << track;
}
}
Tomahawk::InfoSystem::InfoRequestData requestData = reply->property( "requestData" ).value< Tomahawk::InfoSystem::InfoRequestData >();