Backport pull request #8209 from jellyfin/release-10.8.z

Fix series query including missing episodes when it should not

Original-merge: 9357d610b1

Merged-by: Claus Vium <cvium@users.noreply.github.com>

Backported-by: Joshua Boniface <joshua@boniface.me>
This commit is contained in:
Shadowghost 2022-08-13 21:46:34 -04:00 committed by Joshua Boniface
parent 3e5cf9395f
commit 7b05e0a413

View File

@ -263,10 +263,14 @@ namespace MediaBrowser.Controller.Entities.TV
SeriesPresentationUniqueKey = seriesKey,
IncludeItemTypes = new[] { BaseItemKind.Episode, BaseItemKind.Season },
OrderBy = new[] { (ItemSortBy.SortName, SortOrder.Ascending) },
DtoOptions = options,
IsMissing = user?.DisplayMissingEpisodes
DtoOptions = options
};
if (user == null || !user.DisplayMissingEpisodes)
{
query.IsMissing = false;
}
var allItems = LibraryManager.GetItemList(query);
var allSeriesEpisodes = allItems.OfType<Episode>().ToList();