mirror of
https://github.com/Radarr/Radarr
synced 2026-05-09 06:03:57 +02:00
Fixed: Monitor specific album option for lists
This commit is contained in:
parent
fa33bd857e
commit
cd6a86bba8
1 changed files with 9 additions and 2 deletions
|
|
@ -180,7 +180,7 @@ private void ProcessAlbumReport(ImportListDefinition importList, ImportListItemI
|
||||||
{
|
{
|
||||||
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 @@ private void ProcessAlbumReport(ImportListDefinition importList, ImportListItemI
|
||||||
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue