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:
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 >();
|
||||
|
Loading…
x
Reference in New Issue
Block a user