New: Setting monitor None when adding arist will unmonitor artist

pull/6/head
Qstick 6 years ago
parent 8cd9ab4a9f
commit 8a8799176f

@ -33,6 +33,11 @@ namespace Lidarr.Api.V1.AlbumStudio
artist.Monitored = s.Monitored.Value;
}
if (request.MonitoringOptions != null && request.MonitoringOptions.Monitor == MonitorTypes.None)
{
artist.Monitored = false;
}
_albumMonitoredService.SetAlbumMonitoredStatus(artist, request.MonitoringOptions);
}

@ -121,6 +121,11 @@ namespace NzbDrone.Core.Music
newArtist.SortName = ArtistNameNormalizer.Normalize(newArtist.Metadata.Value.Name, newArtist.Metadata.Value.ForeignArtistId);
newArtist.Added = DateTime.UtcNow;
if (newArtist.AddOptions != null && newArtist.AddOptions.Monitor == MonitorTypes.None)
{
newArtist.Monitored = false;
}
var validationResult = _addArtistValidator.Validate(newArtist);
if (!validationResult.IsValid)

Loading…
Cancel
Save