Fixed: Don't attempt to insert duplicate ids or monitor multiple releases (#684)

This commit is contained in:
ta264
2019-03-22 09:33:48 +00:00
committed by GitHub
parent 161cb1a4e6
commit 580641a600
6 changed files with 431 additions and 64 deletions
@@ -311,7 +311,6 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
if (resource.Releases != null)
{
album.AlbumReleases = resource.Releases.Select(x => MapRelease(x, artistDict)).ToList();
album.AlbumReleases.Value.OrderByDescending(x => x.TrackCount).First().Monitored = true;
}
album.AnyReleaseOk = true;