mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Prevent Sequence contains no elements
when album isn't synced to Lidarr
This commit is contained in:
parent
bd531efdba
commit
3066c80dc9
1 changed files with 1 additions and 0 deletions
|
@ -155,6 +155,7 @@ namespace NzbDrone.Core.MediaFiles.TrackImport.Identification
|
||||||
private bool ShouldFingerprint(LocalAlbumRelease localAlbumRelease)
|
private bool ShouldFingerprint(LocalAlbumRelease localAlbumRelease)
|
||||||
{
|
{
|
||||||
var worstTrackMatchDist = localAlbumRelease.TrackMapping?.Mapping
|
var worstTrackMatchDist = localAlbumRelease.TrackMapping?.Mapping
|
||||||
|
.DefaultIfEmpty()
|
||||||
.MaxBy(x => x.Value.Item2.NormalizedDistance())
|
.MaxBy(x => x.Value.Item2.NormalizedDistance())
|
||||||
.Value.Item2.NormalizedDistance() ?? 1.0;
|
.Value.Item2.NormalizedDistance() ?? 1.0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue