1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-24 09:49:42 +01:00

MusicBrainzPlugin: avoid duplicate tracks

This commit is contained in:
Kilian Lackhove 2012-12-14 10:36:31 +01:00
parent 68c2ea239f
commit b02d33340b

@ -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 >();