mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -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
|
@ -58,6 +58,23 @@ namespace NzbDrone.Web.Controllers
|
|||
return View(new GridModel(upcoming));
|
||||
}
|
||||
|
||||
[GridAction]
|
||||
public ActionResult _AjaxBindingTomorrow()
|
||||
{
|
||||
var upcoming = _upcomingEpisodesProvider.Tomorrow().Select(e => new UpcomingEpisodeModel
|
||||
{
|
||||
SeriesId = e.Series.SeriesId,
|
||||
SeriesName = e.Series.Title,
|
||||
SeasonNumber = e.SeasonNumber,
|
||||
EpisodeNumber = e.EpisodeNumber,
|
||||
Title = e.Title,
|
||||
Overview = e.Overview,
|
||||
AirDate = e.AirDate.Add(Convert.ToDateTime(e.Series.AirTimes).TimeOfDay)
|
||||
});
|
||||
|
||||
return View(new GridModel(upcoming));
|
||||
}
|
||||
|
||||
[GridAction]
|
||||
public ActionResult _AjaxBindingWeek()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue