mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Added "Tomorrow" view for the upcoming episodes page so it was separate from the weekly forecast.
This commit is contained in:
parent
f1cf6ace73
commit
de003b9774
3 changed files with 52 additions and 2 deletions
|
@ -39,10 +39,15 @@ namespace NzbDrone.Core.Providers
|
|||
return _repository.All<Episode>().Where(e => e.AirDate == DateTime.Today).ToList();
|
||||
}
|
||||
|
||||
public virtual List<Episode> Tomorrow()
|
||||
{
|
||||
return _repository.All<Episode>().Where(e => e.AirDate == DateTime.Today.AddDays(1)).ToList();
|
||||
}
|
||||
|
||||
public virtual List<Episode> Week()
|
||||
{
|
||||
return
|
||||
_repository.All<Episode>().Where(e => e.AirDate > DateTime.Today && e.AirDate < DateTime.Today.AddDays(8))
|
||||
_repository.All<Episode>().Where(e => e.AirDate > DateTime.Today.AddDays(1) && e.AirDate < DateTime.Today.AddDays(8))
|
||||
.ToList();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue