update latest channel content display

This commit is contained in:
Luke Pulverenti
2014-06-17 12:03:14 -04:00
parent e765fef271
commit 43ab885530
6 changed files with 60 additions and 39 deletions

View File

@@ -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))