Fix warnings

This commit is contained in:
Claus Vium 2020-07-15 19:04:36 +02:00
parent a23920e2ad
commit 90fa1149fa

View File

@ -118,13 +118,14 @@ namespace Emby.Server.Implementations.TV
}
var items = _libraryManager
.GetItemList(new InternalItemsQuery(user)
.GetItemList(
new InternalItemsQuery(user)
{
IncludeItemTypes = new[] {typeof(Episode).Name},
OrderBy = new[] {new ValueTuple<string, SortOrder>(ItemSortBy.DatePlayed, SortOrder.Descending)},
IncludeItemTypes = new[] { typeof(Episode).Name },
OrderBy = new[] { new ValueTuple<string, SortOrder>(ItemSortBy.DatePlayed, SortOrder.Descending) },
SeriesPresentationUniqueKey = presentationUniqueKey,
Limit = limit,
DtoOptions = new DtoOptions {Fields = new ItemFields[] {ItemFields.SeriesPresentationUniqueKey}, EnableImages = false},
DtoOptions = new DtoOptions { Fields = new[] { ItemFields.SeriesPresentationUniqueKey }, EnableImages = false },
GroupBySeriesPresentationUniqueKey = true
}, parentsFolders.ToList())
.Cast<Episode>()