mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-02 13:58:29 +01:00
update latest channel content display
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user