Index: Slim/Schema/Contributor.pm =================================================================== --- Slim/Schema/Contributor.pm (revision 29102) +++ Slim/Schema/Contributor.pm (working copy) @@ -130,6 +130,8 @@ # Split both the regular and the normalized tags my @artistList = Slim::Music::Info::splitTag($artist); my @sortedList = Slim::Music::Info::splitTag($artistSort); + my @brainzIDList; + if ($brainzID) { @brainzIDList = Slim::Music::Info::splitTag($brainzID); } # Using native DBI here to improve performance during scanning my $dbh = Slim::Schema->storage->dbh; @@ -140,6 +142,7 @@ my $name = $artistList[$i]; my $search = Slim::Utils::Text::ignoreCaseArticles($name); my $sort = Slim::Utils::Text::ignoreCaseArticles(($sortedList[$i] || $name)); + my $mbid = $brainzIDList[$i]; my $sth = $dbh->prepare_cached( 'SELECT id FROM contributors WHERE namesearch = ?' ); $sth->execute($search); @@ -153,7 +156,7 @@ VALUES (?, ?, ?, ?) } ); - $sth->execute( $name, $sort, $search, $brainzID ); + $sth->execute( $name, $sort, $search, $mbid ); $id = $dbh->last_insert_id(undef, undef, undef, undef); } else {