mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-27 11:57:31 +00:00
Fixed: Monitor specific album option for lists
This commit is contained in:
@@ -180,7 +180,7 @@ namespace NzbDrone.Core.ImportLists
|
|||||||
{
|
{
|
||||||
var monitored = importList.ShouldMonitor != ImportListMonitorType.None;
|
var monitored = importList.ShouldMonitor != ImportListMonitorType.None;
|
||||||
|
|
||||||
albumsToAdd.Add(new Album
|
var toAdd = new Album
|
||||||
{
|
{
|
||||||
ForeignAlbumId = report.AlbumMusicBrainzId,
|
ForeignAlbumId = report.AlbumMusicBrainzId,
|
||||||
Monitored = monitored,
|
Monitored = monitored,
|
||||||
@@ -199,7 +199,14 @@ namespace NzbDrone.Core.ImportLists
|
|||||||
Monitor = monitored ? MonitorTypes.All : MonitorTypes.None
|
Monitor = monitored ? MonitorTypes.All : MonitorTypes.None
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
};
|
||||||
|
|
||||||
|
if (importList.ShouldMonitor == ImportListMonitorType.SpecificAlbum)
|
||||||
|
{
|
||||||
|
toAdd.Artist.Value.AddOptions.AlbumsToMonitor.Add(toAdd.ForeignAlbumId);
|
||||||
|
}
|
||||||
|
|
||||||
|
albumsToAdd.Add(toAdd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user