Files
jellyfin-jellyfin-1/MediaBrowser.Controller/Channels/Channel.cs

22 lines
522 B
C#
Raw Normal View History

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