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

Only add albumartist if it's non-empty

This commit is contained in:
hansschmucker 2014-11-13 16:01:13 +01:00
parent 50e910b350
commit 68af1d1e4b

View File

@ -131,8 +131,9 @@ DatabaseCommand_AddFiles::exec( DatabaseImpl* dbi )
// this is the qvariant(map) the remote will get
v = m;
// add the album artist to the artist database
albumartistid = dbi->artistId( albumartist, true );
// add the album artist to the artist database.
if( !albumartist.trimmed().isEmpty() )
albumartistid = dbi->artistId( albumartist, true );
if( !artist.trimmed().isEmpty() )
artistid = dbi->artistId( artist, true );