From 7597a3c3bd5f4b3c01ee14e9fed193c9030ca52f Mon Sep 17 00:00:00 2001 From: ta264 Date: Fri, 28 Feb 2020 20:40:12 +0000 Subject: [PATCH] Fixed: Monitor specific album option for lists --- .../ImportLists/ImportListSyncService.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs b/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs index 2c018ae97..069886844 100644 --- a/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs +++ b/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs @@ -180,7 +180,7 @@ namespace NzbDrone.Core.ImportLists { var monitored = importList.ShouldMonitor != ImportListMonitorType.None; - albumsToAdd.Add(new Album + var toAdd = new Album { ForeignAlbumId = report.AlbumMusicBrainzId, Monitored = monitored, @@ -199,7 +199,14 @@ namespace NzbDrone.Core.ImportLists Monitor = monitored ? MonitorTypes.All : MonitorTypes.None } }, - }); + }; + + if (importList.ShouldMonitor == ImportListMonitorType.SpecificAlbum) + { + toAdd.Artist.Value.AddOptions.AlbumsToMonitor.Add(toAdd.ForeignAlbumId); + } + + albumsToAdd.Add(toAdd); } }