jellyfin/MediaBrowser.Controller/Channels/Channel.cs

22 lines
524 B
C#
Raw Normal View History

2014-03-17 18:45:41 -07:00
using MediaBrowser.Controller.Entities;
2014-05-02 21:20:04 -07:00
using System;
using System.Linq;
2014-03-17 18:45:41 -07:00
namespace MediaBrowser.Controller.Channels
{
public class Channel : BaseItem
{
public string OriginalChannelName { get; set; }
2014-05-02 21:20:04 -07:00
public override bool IsVisible(User user)
{
2014-05-16 10:11:07 -07:00
if (user.Configuration.BlockedChannels.Contains(Id.ToString("N"), StringComparer.OrdinalIgnoreCase))
2014-05-02 21:20:04 -07:00
{
return false;
}
return base.IsVisible(user);
}
2014-03-17 18:45:41 -07:00
}
}