mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Calendar will now only show monitored episodes
This commit is contained in:
parent
f4a3394745
commit
440a128f28
2 changed files with 8 additions and 2 deletions
|
@ -119,8 +119,12 @@ namespace NzbDrone.Core.Tv
|
|||
|
||||
public List<Episode> EpisodesBetweenDates(DateTime startDate, DateTime endDate)
|
||||
{
|
||||
return Query.Where<Episode>(e => e.AirDate >= startDate)
|
||||
.AndWhere(e => e.AirDate <= endDate).ToList();
|
||||
return Query.Join<Episode, Series>(JoinType.Inner, e => e.Series, (e, s) => e.SeriesId == s.Id)
|
||||
.Where<Episode>(e => e.AirDate >= startDate)
|
||||
.AndWhere(e => e.AirDate <= endDate)
|
||||
.AndWhere(e => e.Monitored)
|
||||
.AndWhere(e => e.Series.Monitored)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public void SetMonitoredFlat(Episode episode, bool monitored)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue