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:
parent
728c0e8272
commit
fcb1bcb91b
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user