aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-06-17 12:03:14 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-06-17 12:03:14 -0400
commit43ab885530a9b24eb03b060cbe0e895caf086fd7 (patch)
tree5c33e3bf319d2022280383909197fd3386f9a32c /MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
parente765fef271760998e99259e021bf0a214702c77f (diff)
update latest channel content display
Diffstat (limited to 'MediaBrowser.Server.Implementations/Channels/ChannelManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Channels/ChannelManager.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
index 59e4e695dc..aaebd1c34c 100644
--- a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
+++ b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
@@ -107,6 +107,13 @@ namespace MediaBrowser.Server.Implementations.Channels
var channels = _channelEntities.OrderBy(i => i.SortName).ToList();
+ if (query.SupportsLatestItems.HasValue)
+ {
+ var val = query.SupportsLatestItems.Value;
+ channels = channels.Where(i => (GetChannelProvider(i) is ISupportsLatestMedia) == val)
+ .ToList();
+ }
+
if (user != null)
{
channels = channels.Where(i => GetChannelProvider(i).IsEnabledFor(user.Id.ToString("N")) && i.IsVisible(user))