1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 23:39:42 +01:00

Check whether albumartist is blank before trying to add it.

This commit is contained in:
hansschmucker 2014-11-13 15:30:43 +01:00
parent 8e199f9faf
commit 9e710da93d

View File

@ -134,7 +134,8 @@ DatabaseCommand_AddFiles::exec( DatabaseImpl* dbi )
// add the album artist to the artist database
albumartistid = dbi->artistId( albumartist, true );
artistid = dbi->artistId( artist, true );
if( !artist.trimmed().isEmpty() )
artistid = dbi->artistId( artist, true );
if ( artistid < 1 )
continue;
trackid = dbi->trackId( artistid, track, true );