You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Controller/Channels/Channel.cs

22 lines
522 B

using MediaBrowser.Controller.Entities;
using System;
using System.Linq;
namespace MediaBrowser.Controller.Channels
{
public class Channel : Folder
{
public string OriginalChannelName { get; set; }
public override bool IsVisible(User user)
{
if (user.Configuration.BlockedChannels.Contains(Id.ToString("N"), StringComparer.OrdinalIgnoreCase))
{
return false;
}
return base.IsVisible(user);
}
}
}