mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 23:30:50 +02:00
update intro provider
This commit is contained in:
parent
1d11ef877b
commit
664f0441b0
|
@ -108,9 +108,12 @@ namespace MediaBrowser.Server.Implementations.Intros
|
||||||
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[] { },
|
BlockUnratedItems = config.EnableIntrosParentalControl ? new[] { UnratedItem.Trailer } : new UnratedItem[] { },
|
||||||
Limit = config.TrailerLimit,
|
|
||||||
|
// Account for duplicates by imdb id, since the database doesn't support this yet
|
||||||
|
Limit = config.TrailerLimit * 2,
|
||||||
SourceTypes = sourceTypes.ToArray()
|
SourceTypes = sourceTypes.ToArray()
|
||||||
});
|
|
||||||
|
}).Where(i => string.IsNullOrWhiteSpace(i.GetProviderId(MetadataProviders.Imdb)) || !string.Equals(i.GetProviderId(MetadataProviders.Imdb), item.GetProviderId(MetadataProviders.Imdb), StringComparison.OrdinalIgnoreCase)).Take(config.TrailerLimit);
|
||||||
|
|
||||||
candidates.AddRange(trailerResult.Select(i => new ItemWithTrailer
|
candidates.AddRange(trailerResult.Select(i => new ItemWithTrailer
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue