add channels infrastructure

This commit is contained in:
Luke Pulverenti
2014-05-03 00:20:04 -04:00
parent 3228f50895
commit 6936336b82
19 changed files with 437 additions and 60 deletions

View File

@@ -1,9 +1,21 @@
using MediaBrowser.Controller.Entities;
using System;
using System.Linq;
namespace MediaBrowser.Controller.Channels
{
public class Channel : BaseItem
{
public string OriginalChannelName { get; set; }
public override bool IsVisible(User user)
{
if (user.Configuration.BlockedChannels.Contains(Name, StringComparer.OrdinalIgnoreCase))
{
return false;
}
return base.IsVisible(user);
}
}
}