mirror of
https://github.com/Lidarr/Lidarr.git
synced 2026-02-09 15:29:42 -06:00
Fixed: nullref fingerprinting
This commit is contained in:
@@ -155,9 +155,9 @@ namespace NzbDrone.Core.MediaFiles.TrackImport.Identification
|
||||
private bool ShouldFingerprint(LocalAlbumRelease localAlbumRelease)
|
||||
{
|
||||
var worstTrackMatchDist = localAlbumRelease.TrackMapping?.Mapping
|
||||
.DefaultIfEmpty()
|
||||
.MaxBy(x => x.Value.Item2.NormalizedDistance())
|
||||
.Value.Item2.NormalizedDistance() ?? 1.0;
|
||||
.Select(x => x.Value.Item2.NormalizedDistance())
|
||||
.DefaultIfEmpty(1.0)
|
||||
.Max();
|
||||
|
||||
if (localAlbumRelease.Distance.NormalizedDistance() > 0.15 ||
|
||||
localAlbumRelease.TrackMapping.LocalExtra.Any() ||
|
||||
|
||||
Reference in New Issue
Block a user