Fixed: Do not monitor specials when monitoring missing

pull/3113/head
Mark McDowall 9 years ago
parent 3ad7673d69
commit cc6ab0ade1

@ -119,8 +119,7 @@ namespace NzbDrone.Core.Test.TvTests.EpisodeMonitoredServiceTests
Subject.SetEpisodeMonitoredStatus(_series, monitoringOptions); Subject.SetEpisodeMonitoredStatus(_series, monitoringOptions);
VerifyMonitored(e => !e.HasFile); VerifyNotMonitored(e => e.SeasonNumber == 0);
VerifyNotMonitored(e => e.HasFile);
} }
[Test] [Test]
@ -136,9 +135,7 @@ namespace NzbDrone.Core.Test.TvTests.EpisodeMonitoredServiceTests
Subject.SetEpisodeMonitoredStatus(_series, monitoringOptions); Subject.SetEpisodeMonitoredStatus(_series, monitoringOptions);
VerifyMonitored(e => e.AirDateUtc.HasValue && e.AirDateUtc.Value.After(DateTime.UtcNow)); VerifyNotMonitored(e => e.SeasonNumber == 0);
VerifyMonitored(e => !e.AirDateUtc.HasValue);
VerifyNotMonitored(e => e.AirDateUtc.HasValue && e.AirDateUtc.Value.Before(DateTime.UtcNow));
} }
[Test] [Test]

@ -74,6 +74,11 @@ namespace NzbDrone.Core.Tv
{ {
ToggleEpisodesMonitoredState(episodes.Where(e => e.SeasonNumber == season.SeasonNumber), false); ToggleEpisodesMonitoredState(episodes.Where(e => e.SeasonNumber == season.SeasonNumber), false);
} }
else if (season.SeasonNumber == 0)
{
ToggleEpisodesMonitoredState(episodes.Where(e => e.SeasonNumber == season.SeasonNumber), false);
}
} }
if (season.SeasonNumber < lastSeason) if (season.SeasonNumber < lastSeason)

Loading…
Cancel
Save