aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-07 13:39:35 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-07 13:39:35 -0500
commit5392ff4da4794a0c4268baa61572a8cd881db379 (patch)
treed6a95ff3393fdfb44764bea77c820b6fa39bbcc1 /MediaBrowser.Server.Implementations
parent9862959354560e00331433ec6cd4276210e1a1c4 (diff)
added a new encoding settings page under advanced
Diffstat (limited to 'MediaBrowser.Server.Implementations')
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
index 332cbf016..d49410b4e 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
@@ -980,5 +980,19 @@ namespace MediaBrowser.Server.Implementations.LiveTv
{
return ActiveService.CloseLiveStream(id, cancellationToken);
}
+
+ public GuideInfo GetGuideInfo()
+ {
+ var programs = _programs.ToList();
+
+ var startDate = programs.Select(i => i.Value.ProgramInfo.StartDate).Min();
+ var endDate = programs.Select(i => i.Value.ProgramInfo.StartDate).Max();
+
+ return new GuideInfo
+ {
+ StartDate = startDate,
+ EndDate = endDate
+ };
+ }
}
}