jellyfin-server/MediaBrowser.Controller/Channels/Channel.cs

22 lines
512 B
C#
Raw Normal View History

2014-03-18 01:45:41 +00:00
using MediaBrowser.Controller.Entities;
2014-05-03 04:20:04 +00:00
using System;
using System.Linq;
2014-03-18 01:45:41 +00:00
namespace MediaBrowser.Controller.Channels
{
public class Channel : BaseItem
{
public string OriginalChannelName { get; set; }
2014-05-03 04:20:04 +00:00
public override bool IsVisible(User user)
{
if (user.Configuration.BlockedChannels.Contains(Name, StringComparer.OrdinalIgnoreCase))
{
return false;
}
return base.IsVisible(user);
}
2014-03-18 01:45:41 +00:00
}
}