|
|
@ -99,8 +99,9 @@ namespace MediaBrowser.Server.Implementations.Intros
|
|
|
|
IncludeItemTypes = new[] { typeof(Trailer).Name },
|
|
|
|
IncludeItemTypes = new[] { typeof(Trailer).Name },
|
|
|
|
TrailerTypes = trailerTypes.ToArray(),
|
|
|
|
TrailerTypes = trailerTypes.ToArray(),
|
|
|
|
SimilarTo = item,
|
|
|
|
SimilarTo = item,
|
|
|
|
IsPlayed = config.EnableIntrosForWatchedContent ? (bool?) null : false,
|
|
|
|
IsPlayed = config.EnableIntrosForWatchedContent ? (bool?)null : false,
|
|
|
|
MaxParentalRating = config.EnableIntrosParentalControl ? ratingLevel : null,
|
|
|
|
MaxParentalRating = config.EnableIntrosParentalControl ? ratingLevel : null,
|
|
|
|
|
|
|
|
BlockUnratedItems = config.EnableIntrosParentalControl ? new[] { UnratedItem.Trailer } : new UnratedItem[] { },
|
|
|
|
Limit = config.TrailerLimit
|
|
|
|
Limit = config.TrailerLimit
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|