aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-03-30 12:37:29 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-03-30 12:37:29 -0400
commitf308a41cab09d8ee09bdc4188cbe6f7799730a2e (patch)
tree06813b1ab7504b08537f49a50a87ed8a54c77f20 /MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
parentb293211628409753b8d8f47c31bbf19414440f73 (diff)
update cinema mode trailer selection
Diffstat (limited to 'MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs b/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
index 49012c65a..9ebae5d91 100644
--- a/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
+++ b/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
@@ -102,10 +102,15 @@ namespace MediaBrowser.Server.Implementations.Intros
if (trailerTypes.Count > 0)
{
+ var excludeTrailerTypes = Enum.GetNames(typeof(TrailerType))
+ .Select(i => (TrailerType)Enum.Parse(typeof(TrailerType), i, true))
+ .Except(trailerTypes)
+ .ToArray();
+
var trailerResult = _libraryManager.GetItemList(new InternalItemsQuery
{
IncludeItemTypes = new[] { typeof(Trailer).Name },
- TrailerTypes = trailerTypes.ToArray()
+ ExcludeTrailerTypes = excludeTrailerTypes
});
candidates.AddRange(trailerResult.Select(i => new ItemWithTrailer