added a new encoding settings page under advanced

This commit is contained in:
Luke Pulverenti
2014-01-07 13:39:35 -05:00
parent 9862959354
commit 5392ff4da4
16 changed files with 116 additions and 26 deletions

View File

@@ -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
};
}
}
}