Fix log message about multiple MBIDs

This commit is contained in:
Deluan 2021-07-19 11:38:14 -04:00 committed by Deluan Quintão
parent 2742977c63
commit 00e418cb2a

View file

@ -80,7 +80,7 @@ func getMostFrequentMbzID(ctx context.Context, mbzIDs, entityName, name string)
}
}
if name != consts.VariousArtists {
if len(idCounts) > 1 && name != consts.VariousArtists {
if topId == consts.VariousArtistsMbzId {
log.Warn(ctx, "Artist with mbid of Various Artists", "name", name, "mbid", topId)
} else {