mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
added new properties and endpoints for series special features
This commit is contained in:
parent
800160354f
commit
f12c03e471
@ -173,23 +173,23 @@
|
||||
<div id="additionalPartsContent" class="detailSectionContent"></div>
|
||||
</div>
|
||||
<div id="trailersCollapsible" class="detailSection inlineDetailSection hide">
|
||||
<div class="detailSectionHeader">
|
||||
<div id="trailerSectionHeader" class="detailSectionHeader">
|
||||
Trailers
|
||||
</div>
|
||||
<div id="trailersContent" class="detailSectionContent"></div>
|
||||
</div>
|
||||
<div id="specialsCollapsible" class="detailSection inlineDetailSection hide">
|
||||
<div class="detailSectionHeader">
|
||||
Special Features
|
||||
</div>
|
||||
<div id="specialsContent" class="detailSectionContent"></div>
|
||||
</div>
|
||||
<div id="castCollapsible" style="display: none;" class="detailSection">
|
||||
<div class="detailSectionHeader">
|
||||
Cast & Crew
|
||||
</div>
|
||||
<div id="castContent" class="detailSectionContent"></div>
|
||||
</div>
|
||||
<div id="specialsCollapsible" class="detailSection hide">
|
||||
<div class="detailSectionHeader">
|
||||
Special Features
|
||||
</div>
|
||||
<div id="specialsContent" class="detailSectionContent"></div>
|
||||
</div>
|
||||
<div id="musicVideosCollapsible" style="display: none;" class="detailSection">
|
||||
<div class="detailSectionHeader">
|
||||
Music Videos
|
||||
|
@ -435,9 +435,10 @@
|
||||
|
||||
ApiClient.getItems(Dashboard.getCurrentUserId(), {
|
||||
|
||||
ParentId: getParameterByName('id'),
|
||||
ParentId: item.Id,
|
||||
SortBy: sortBy,
|
||||
Fields: "PrimaryImageAspectRatio,ItemCounts,DisplayMediaType,DateCreated,UserData,AudioInfo"
|
||||
Fields: "PrimaryImageAspectRatio,ItemCounts,DisplayMediaType,DateCreated,UserData,AudioInfo",
|
||||
MinIndexNumber: item.Type == "Series" ? 1 : null
|
||||
|
||||
}).done(function (result) {
|
||||
|
||||
@ -468,7 +469,7 @@
|
||||
$('#childrenTitle', page).html('Episodes (' + item.ChildCount + ')');
|
||||
}
|
||||
else if (item.Type == "Series") {
|
||||
$('#childrenTitle', page).html('Seasons (' + item.ChildCount + ')');
|
||||
$('#childrenTitle', page).html('Seasons (' + item.SeasonCount + ')');
|
||||
}
|
||||
else if (item.Type == "BoxSet") {
|
||||
$('#childrenTitle', page).html('Movies (' + item.ChildCount + ')');
|
||||
@ -860,6 +861,12 @@
|
||||
|
||||
function renderTrailers(page, item) {
|
||||
|
||||
if (item.Type == "Trailer") {
|
||||
$('#trailerSectionHeader', page).html('More trailers');
|
||||
} else {
|
||||
$('#trailerSectionHeader', page).html('Trailers');
|
||||
}
|
||||
|
||||
var remoteTrailersHtml = '';
|
||||
|
||||
for (var i = 0, length = item.RemoteTrailers.length; i < length; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user