mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Merge pull request #134 from crabmanX/master
some minor fixes to the musicbrainz infoplugin
This commit is contained in:
@@ -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();
|
||||
if ( !tracksSL.contains( track ) )
|
||||
{
|
||||
tracksSL << track;
|
||||
tDebug(LOGVERBOSE) << Q_FUNC_INFO << track;
|
||||
}
|
||||
}
|
||||
|
||||
Tomahawk::InfoSystem::InfoRequestData requestData = reply->property( "requestData" ).value< Tomahawk::InfoSystem::InfoRequestData >();
|
||||
|
Reference in New Issue
Block a user