cinema mode fixes

This commit is contained in:
Luke Pulverenti
2016-04-29 23:59:46 -04:00
parent a4f1c264b0
commit 1a02365f78
4 changed files with 8 additions and 26 deletions

View File

@@ -27,13 +27,16 @@ namespace MediaBrowser.Server.Implementations.Library
.Cast<IHasTrailers>()
.ToList();
var trailerTypes = Enum.GetNames(typeof(TrailerType))
.Select(i => (TrailerType)Enum.Parse(typeof(TrailerType), i, true))
.Except(new[] { TrailerType.LocalTrailer })
.ToArray();
var trailers = _libraryManager.GetItemList(new InternalItemsQuery
{
IncludeItemTypes = new[] { typeof(Trailer).Name },
ExcludeTrailerTypes = new[]
{
TrailerType.LocalTrailer
}
TrailerTypes = trailerTypes
}).ToArray();
var numComplete = 0;