1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-30 07:22:35 +01:00

New: Setting monitor to None when adding series will unmonitor the series as well

This commit is contained in:
Mark McDowall 2019-02-19 18:26:34 -08:00
parent 728c0e8272
commit fcb1bcb91b
2 changed files with 10 additions and 0 deletions

View File

@ -110,6 +110,11 @@ namespace NzbDrone.Core.Tv
newSeries.SortTitle = SeriesTitleNormalizer.Normalize(newSeries.Title, newSeries.TvdbId);
newSeries.Added = DateTime.UtcNow;
if (newSeries.AddOptions != null && newSeries.AddOptions.Monitor == MonitorTypes.None)
{
newSeries.Monitored = false;
}
var validationResult = _addSeriesValidator.Validate(newSeries);
if (!validationResult.IsValid)

View File

@ -46,6 +46,11 @@ namespace Sonarr.Api.V3.SeasonPass
}
}
if (request.MonitoringOptions != null && request.MonitoringOptions.Monitor == MonitorTypes.None)
{
series.Monitored = false;
}
_episodeMonitoredService.SetEpisodeMonitoredStatus(series, request.MonitoringOptions);
}