1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

Prevent another plugin from adding empty tracks.

This commit is contained in:
Thierry Goeckel
2014-06-03 17:09:24 +02:00
parent 0b7449e488
commit 8c86c0196b

View File

@@ -168,7 +168,7 @@ DiscogsPlugin::albumInfoSlot( const InfoRequestData& requestData, QNetworkReply*
foreach ( const QVariant& v, release[ "tracklist" ].toList() ) foreach ( const QVariant& v, release[ "tracklist" ].toList() )
{ {
const QVariantMap track = v.toMap(); const QVariantMap track = v.toMap();
if ( track.contains( "title" ) ) if ( track.contains( "title" ) && !track[ "title" ].toString().isEmpty() )
trackNameList << track[ "title" ].toString(); trackNameList << track[ "title" ].toString();
} }