1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-20 21:54:58 -04:00

New: Option to control whether new seasons get monitored automatically

(cherry picked from commit b95a84f6612333d96fcdca083f9c39d96956f3f4)
Closes #5083
This commit is contained in:
Qstick
2023-10-21 21:57:59 -05:00
committed by Mark McDowall
parent 5328fb4ab3
commit ade40b72bc
24 changed files with 236 additions and 8 deletions
@@ -58,9 +58,10 @@ namespace NzbDrone.Core.Test.TvTests
}
[Test]
public void should_monitor_new_seasons_automatically_if_series_is_monitored()
public void should_monitor_new_seasons_automatically_if_monitor_new_items_is_all()
{
_series.Monitored = true;
_series.MonitorNewItems = NewItemMonitorTypes.All;
var newSeriesInfo = _series.JsonClone();
newSeriesInfo.Seasons.Add(Builder<Season>.CreateNew()
.With(s => s.SeasonNumber = 2)
@@ -75,9 +76,10 @@ namespace NzbDrone.Core.Test.TvTests
}
[Test]
public void should_not_monitor_new_seasons_automatically_if_series_is_not_monitored()
public void should_not_monitor_new_seasons_automatically_if_monitor_new_items_is_none()
{
_series.Monitored = false;
_series.MonitorNewItems = NewItemMonitorTypes.None;
var newSeriesInfo = _series.JsonClone();
newSeriesInfo.Seasons.Add(Builder<Season>.CreateNew()
.With(s => s.SeasonNumber = 2)