The Free Software Media System - Server Backend & API
update intro provider
Luke Pulverenti654b13b263cb
diff --git a/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs b/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.csindex a1638f7220..b86a5f5d41 100644--- a/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs+++ b/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs@@ -108,9 +108,12 @@ namespace MediaBrowser.Server.Implementations.IntrosIsPlayed = config.EnableIntrosForWatchedContent ? (bool?)null : false,MaxParentalRating = config.EnableIntrosParentalControl ? ratingLevel : null,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()- });++ }).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{