mirror of
https://github.com/Lidarr/Lidarr
synced 2026-04-21 20:21:30 +02: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 @@ private bool FingerprintingAllowed(bool newDownload)
|
|||
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 a new issue