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:
parent
8e199f9faf
commit
9e710da93d
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user