The Free Software Media System - Server Backend & API
fix channel count
Luke Pulverentif3454d3bf882
diff --git a/MediaBrowser.Api/SimilarItemsHelper.cs b/MediaBrowser.Api/SimilarItemsHelper.csindex abc4ece65b..1f02a63a09 100644--- a/MediaBrowser.Api/SimilarItemsHelper.cs+++ b/MediaBrowser.Api/SimilarItemsHelper.cs@@ -153,7 +153,7 @@ namespace MediaBrowser.Apiif (!string.IsNullOrEmpty(item1.OfficialRating) && string.Equals(item1.OfficialRating, item2.OfficialRating, StringComparison.OrdinalIgnoreCase)){- points += 1;+ points += 10;}// Find common genresdiff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.csindex 6cd782140a..e4446895f9 100644--- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs@@ -174,7 +174,7 @@ namespace MediaBrowser.Server.Implementations.LiveTvvar result = new QueryResult<ChannelInfoDto>{Items = returnList.ToArray(),- TotalRecordCount = returnList.Count+ TotalRecordCount = allChannels.Count};return result;@@ -985,6 +985,9 @@ namespace MediaBrowser.Server.Implementations.LiveTventities = entities.Where(i => i.IsParentalAllowed(currentUser));}+ var entityList = entities.ToList();+ entities = entityList;+if (query.StartIndex.HasValue){entities = entities.Skip(query.StartIndex.Value);@@ -1006,7 +1009,7 @@ namespace MediaBrowser.Server.Implementations.LiveTvreturn new QueryResult<RecordingInfoDto>{Items = returnArray,- TotalRecordCount = returnArray.Length+ TotalRecordCount = entityList.Count};}