The Free Software Media System - Server Backend & API
update channels
Luke Pulverenti14f3bb6b19db
diff --git a/MediaBrowser.Model/Configuration/UserConfiguration.cs b/MediaBrowser.Model/Configuration/UserConfiguration.csindex 278d22cfb4..ab3a861a36 100644--- a/MediaBrowser.Model/Configuration/UserConfiguration.cs+++ b/MediaBrowser.Model/Configuration/UserConfiguration.cs@@ -29,8 +29,6 @@ namespace MediaBrowser.Model.Configurationpublic bool GroupMoviesIntoBoxSets { get; set; }- public string[] DisplayChannelsWithinViews { get; set; }-public string[] ExcludeFoldersFromGrouping { get; set; }public string[] GroupedFolders { get; set; }@@ -50,7 +48,6 @@ namespace MediaBrowser.Model.Configurationpublic string[] PlainFolderViews { get; set; }public bool HidePlayedInLatest { get; set; }- public bool DisplayChannelsInline { get; set; }/// <summary>/// Initializes a new instance of the <see cref="UserConfiguration" /> class.@@ -62,8 +59,6 @@ namespace MediaBrowser.Model.ConfigurationLatestItemsExcludes = new string[] { };OrderedViews = new string[] { };- DisplayChannelsWithinViews = new string[] { };- DisplayChannelsInline = true;PlainFolderViews = new string[] { };diff --git a/MediaBrowser.Server.Implementations/Library/UserViewManager.cs b/MediaBrowser.Server.Implementations/Library/UserViewManager.csindex aca13e0888..63d1d4cb88 100644--- a/MediaBrowser.Server.Implementations/Library/UserViewManager.cs+++ b/MediaBrowser.Server.Implementations/Library/UserViewManager.cs@@ -124,16 +124,7 @@ namespace MediaBrowser.Server.Implementations.Libraryvar channels = channelResult.Items;- var embeddedChannels = channels- .Where(i => user.Configuration.DisplayChannelsInline || user.Configuration.DisplayChannelsWithinViews.Contains(i.Id.ToString("N")))- .ToList();-- list.AddRange(embeddedChannels);-- if (channels.Length > embeddedChannels.Count)- {- list.Add(await _channelManager.GetInternalChannelFolder(cancellationToken).ConfigureAwait(false));- }+ list.AddRange(channels);if (_liveTvManager.GetEnabledUsers().Select(i => i.Id.ToString("N")).Contains(query.UserId)){