The Free Software Media System - Server Backend & API
added live tv suggested page
Luke Pulverenti8ade5b51f346
diff --git a/MediaBrowser.Api/SessionsService.cs b/MediaBrowser.Api/SessionsService.csindex 79de8cc657..f662e38170 100644--- a/MediaBrowser.Api/SessionsService.cs+++ b/MediaBrowser.Api/SessionsService.cs@@ -27,6 +27,9 @@ namespace MediaBrowser.Api[ApiMember(Name = "ControllableByUserId", Description = "Optional. Filter by sessions that a given user is allowed to remote control.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]public Guid? ControllableByUserId { get; set; }++ [ApiMember(Name = "DeviceId", Description = "Optional. Filter by device id.", IsRequired = false, DataType = "boolean", ParameterType = "query", Verb = "GET")]+ public string DeviceId { get; set; }}/// <summary>@@ -248,6 +251,11 @@ namespace MediaBrowser.Apiresult = result.Where(i => i.SupportsRemoteControl == request.SupportsRemoteControl.Value);}+ if (!string.IsNullOrEmpty(request.DeviceId))+ {+ result = result.Where(i => string.Equals(i.DeviceId, request.DeviceId, StringComparison.OrdinalIgnoreCase));+ }+if (request.ControllableByUserId.HasValue){var user = _userManager.GetUserById(request.ControllableByUserId.Value);diff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.csindex 9d8fb5675b..5605ce6e7f 100644--- a/MediaBrowser.WebDashboard/Api/DashboardService.cs+++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs@@ -503,6 +503,7 @@ namespace MediaBrowser.WebDashboard.Api"livetvtimer.js","livetvseriestimer.js","livetvseriestimers.js",+ "livetvsuggested.js","livetvtimers.js","loginpage.js","logpage.js",diff --git a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csprojindex 52c578b97c..cbd53bde9c 100644--- a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj+++ b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj@@ -448,6 +448,9 @@<Content Include="dashboard-ui\scripts\livetvseriestimers.js"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>+ <Content Include="dashboard-ui\scripts\livetvsuggested.js">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content><Content Include="dashboard-ui\scripts\tvupcoming.js"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>@@ -1090,6 +1093,9 @@<Content Include="dashboard-ui\thirdparty\jstree1.0\jquery.jstree.min.js"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>+ <Content Include="dashboard-ui\livetvsuggested.html">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content><Content Include="dashboard-ui\tvupcoming.html"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>