added new properties and endpoints for series special features

This commit is contained in:
Luke Pulverenti 2013-08-30 21:08:32 -04:00
parent 800160354f
commit f12c03e471
2 changed files with 17 additions and 10 deletions

View File

@ -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

View File

@ -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++) {