mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
MusicBrainzPlugin: avoid duplicate tracks
This commit is contained in:
@@ -273,7 +273,11 @@ MusicBrainzPlugin::gotRecordingsSlot()
|
|||||||
for ( int i = 0; i < tracksNL.count(); i++ )
|
for ( int i = 0; i < tracksNL.count(); i++ )
|
||||||
{
|
{
|
||||||
QString track = tracksNL.at(i).firstChildElement( "recording" ).firstChildElement( "title" ).text();
|
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 >();
|
Tomahawk::InfoSystem::InfoRequestData requestData = reply->property( "requestData" ).value< Tomahawk::InfoSystem::InfoRequestData >();
|
||||||
|
Reference in New Issue
Block a user