EpisodesWithoutFiles will now only return episodes where the series and season are monitored.

This commit is contained in:
Mark McDowall 2011-05-26 18:46:00 -07:00
parent 474f17c5e6
commit f582457ddc
1 changed files with 2 additions and 2 deletions

View File

@ -65,9 +65,9 @@ namespace NzbDrone.Core.Providers
public virtual IList<Episode> EpisodesWithoutFiles(bool includeSpecials)
{
if (includeSpecials)
return _repository.All<Episode>().Where(e => e.EpisodeFileId == 0 && e.AirDate <= DateTime.Today).ToList();
return _repository.All<Episode>().Where(e => e.EpisodeFileId == 0 && e.AirDate <= DateTime.Today && e.Series.Monitored && e.Season.Monitored).ToList();
return _repository.All<Episode>().Where(e => e.EpisodeFileId == 0 && e.AirDate <= DateTime.Today && e.SeasonNumber > 0).ToList();
return _repository.All<Episode>().Where(e => e.EpisodeFileId == 0 && e.AirDate <= DateTime.Today && e.SeasonNumber > 0 && e.Series.Monitored && e.Season.Monitored).ToList();
}
/// <summary>