mirror of
https://github.com/Sonarr/Sonarr
synced 2025-03-04 02:28:21 +00:00
EpisodesWithoutFiles will now only return episodes where the series and season are monitored.
This commit is contained in:
parent
474f17c5e6
commit
f582457ddc
1 changed files with 2 additions and 2 deletions
|
@ -65,9 +65,9 @@ namespace NzbDrone.Core.Providers
|
||||||
public virtual IList<Episode> EpisodesWithoutFiles(bool includeSpecials)
|
public virtual IList<Episode> EpisodesWithoutFiles(bool includeSpecials)
|
||||||
{
|
{
|
||||||
if (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>
|
/// <summary>
|
||||||
|
|
Loading…
Add table
Reference in a new issue