mirror of https://github.com/lidarr/Lidarr
Prevent `Sequence contains no elements` when album isn't synced to Lidarr
This commit is contained in:
parent
bd531efdba
commit
3066c80dc9
|
@ -155,6 +155,7 @@ 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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue