Fixed: null coalesce for fingerprinting

This commit is contained in:
bakerboy448 2025-10-04 14:54:18 -05:00 committed by sharinganthief
parent 2deedf0400
commit 639768ba52

View file

@ -157,7 +157,7 @@ private bool ShouldFingerprint(LocalAlbumRelease localAlbumRelease)
var worstTrackMatchDist = localAlbumRelease.TrackMapping?.Mapping
.Select(x => x.Value.Item2.NormalizedDistance())
.DefaultIfEmpty(1.0)
.Max();
.Max() ?? 1.0;
if (localAlbumRelease.Distance.NormalizedDistance() > 0.15 ||
localAlbumRelease.TrackMapping.LocalExtra.Any() ||