From 175d8dae5e08103148b73586e875ed261d945241 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 26 Oct 2015 12:21:00 -0400 Subject: [PATCH] fix cinema mode failure --- MediaBrowser.Controller/Entities/BaseItem.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 7d0e07b0df..ec688bd9f4 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -1163,6 +1163,17 @@ namespace MediaBrowser.Controller.Entities /// true if XXXX, false otherwise. protected virtual bool GetBlockUnratedValue(UserPolicy config) { + // Don't block plain folders that are unrated. Let the media underneath get blocked + // Special folders like series and albums will override this method. + if (IsFolder) + { + return false; + } + if (this is IItemByName) + { + return false; + } + return config.BlockUnratedItems.Contains(UnratedItem.Other); }