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