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
|
|
|
|
|
{
|
2014-06-30 19:24:35 +00:00
|
|
|
|
public class Channel : Folder
|
2014-03-18 01:45:41 +00:00
|
|
|
|
{
|
|
|
|
|
public string OriginalChannelName { get; set; }
|
2014-05-03 04:20:04 +00:00
|
|
|
|
|
|
|
|
|
public override bool IsVisible(User user)
|
|
|
|
|
{
|
2014-05-16 17:11:07 +00:00
|
|
|
|
if (user.Configuration.BlockedChannels.Contains(Id.ToString("N"), StringComparer.OrdinalIgnoreCase))
|
2014-05-03 04:20:04 +00:00
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return base.IsVisible(user);
|
|
|
|
|
}
|
2014-03-18 01:45:41 +00:00
|
|
|
|
}
|
|
|
|
|
}
|