rework checkboxes for block unrated items

This commit is contained in:
Luke Pulverenti
2014-02-21 10:24:29 -05:00
parent aeb43e229a
commit 6e5d90bafe
17 changed files with 59 additions and 26 deletions

View File

@@ -1,9 +1,11 @@
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.LiveTv;
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Linq;
namespace MediaBrowser.Controller.LiveTv
{
@@ -196,5 +198,10 @@ namespace MediaBrowser.Controller.LiveTv
// Not great that this class has to know about that, but we'll improve that later.
return ItemRepository.SaveItem(this, cancellationToken);
}
protected override bool GetBlockUnratedValue(UserConfiguration config)
{
return config.BlockUnratedItems.Contains(UnratedItem.LiveTvProgram);
}
}
}