mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix cinema mode failure
This commit is contained in:
parent
c80e1df1ca
commit
175d8dae5e
@ -1163,6 +1163,17 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
|
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
|
||||||
protected virtual bool GetBlockUnratedValue(UserPolicy config)
|
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);
|
return config.BlockUnratedItems.Contains(UnratedItem.Other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user