1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Display specials within seasons

This commit is contained in:
Luke Pulverenti 2013-11-15 16:31:33 -05:00
parent 66ced0ebc8
commit 7fe1a3311d
4 changed files with 31 additions and 8 deletions

View file

@ -505,6 +505,15 @@
Fields: "ItemCounts,DateCreated,AudioInfo"
};
if (item.Type == "Season" && item.IndexNumber) {
query.ParentId = item.SeriesId;
query.Recursive = true;
query.IncludeItemTypes = "Episode";
query.AiredDuringSeason = item.IndexNumber;
query.SortBy = "PremiereDate,SortName";
}
if (item.Type == "Series" || item.Type == "Season") {
if (!user.Configuration.DisplayMissingEpisodes) {
query.IsMissing = false;
@ -532,7 +541,8 @@
items: result.Items,
useAverageAspectRatio: true,
shape: shape,
showParentName: false
showParentName: false,
displayAsSpecial: item.Type == "Season" && item.IndexNumber
});
$('#childrenContent', page).html(html);