Fixed: Do not monitor specials when monitoring missing

This commit is contained in:
Mark McDowall 2015-07-13 18:09:32 -07:00
parent 3ad7673d69
commit cc6ab0ade1
2 changed files with 7 additions and 5 deletions

View File

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

View File

@ -74,6 +74,11 @@ namespace NzbDrone.Core.Tv
{
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)