diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-21 10:24:29 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-21 10:24:29 -0500 |
| commit | 6e5d90bafe3eca21e64b0a04deba4afee98b2cfa (patch) | |
| tree | 3ceebd0584ec25cdea61ba1771100981a58bbddd /MediaBrowser.Controller/LiveTv/LiveTvProgram.cs | |
| parent | aeb43e229ab0188ef911fc76b43b8fa34b3fcb7e (diff) | |
rework checkboxes for block unrated items
Diffstat (limited to 'MediaBrowser.Controller/LiveTv/LiveTvProgram.cs')
| -rw-r--r-- | MediaBrowser.Controller/LiveTv/LiveTvProgram.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs b/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs index e7a501479..266eaabee 100644 --- a/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs +++ b/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs @@ -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); + } } } |
