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

added a virtual season image provider

This commit is contained in:
Luke Pulverenti 2014-01-05 00:15:38 -05:00
parent 9b7f81c3c6
commit 3360897d0a
6 changed files with 52 additions and 56 deletions

View file

@ -10,7 +10,7 @@
SortOrder: "Ascending",
MediaTypes: "Game",
Recursive: true,
Fields: "Genres,Studios",
Fields: "Genres,Studios,PrimaryImageAspectRatio",
StartIndex: 0
};
@ -32,32 +32,14 @@
var checkSortOption = $('.radioSortBy:checked', page);
$('.viewSummary', page).html(LibraryBrowser.getViewSummaryHtml(query, checkSortOption)).trigger('create');
if (view == "Backdrop") {
html += LibraryBrowser.getPosterDetailViewHtml({
items: result.Items,
preferBackdrop: true,
context: "games",
shape: "backdrop"
});
$('.itemsContainer', page).removeClass('timelineItemsContainer');
}
else if (view == "Poster") {
html += LibraryBrowser.getPosterDetailViewHtml({
items: result.Items,
context: "games",
shape: "poster"
});
$('.itemsContainer', page).removeClass('timelineItemsContainer');
}
else if (view == "Timeline") {
html += LibraryBrowser.getPosterDetailViewHtml({
items: result.Items,
context: "games",
shape: "poster",
timeline: true
});
$('.itemsContainer', page).addClass('timelineItemsContainer');
}
html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "auto",
context: 'games',
useAverageAspectRatio: false,
showTitle: true,
showParentTitle: true
});
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount);