mirror of
https://github.com/Lidarr/Lidarr
synced 2025-12-06 08:25:54 +01:00
Fixed: null coalesce for fingerprinting
This commit is contained in:
parent
4baba902ea
commit
ec9625f2b3
1 changed files with 1 additions and 1 deletions
|
|
@ -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() ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue