Fixed: null coalesce for fingerprinting

This commit is contained in:
bakerboy448 2025-10-04 14:54:18 -05:00
parent 4baba902ea
commit ec9625f2b3

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() ||