mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix local trailer and special feature images
This commit is contained in:
parent
ac31d33c0c
commit
fd226c8248
1 changed files with 52 additions and 49 deletions
|
@ -450,18 +450,19 @@
|
|||
html += '<div class="posterViewItem posterViewItemWithDualText">';
|
||||
html += '<a href="#play-Trailer-' + i + '" onclick="ItemDetailPage.playTrailer(' + i + ');">';
|
||||
|
||||
if (trailer.ImageTag) {
|
||||
var imageTags = trailer.ImageTags || {};
|
||||
|
||||
var imgUrl = ApiClient.getImageUrl(item.Id, {
|
||||
width: 500,
|
||||
tag: trailer.ImageTag,
|
||||
type: "Trailer",
|
||||
index: i
|
||||
if (imageTags.Primary) {
|
||||
|
||||
var imgUrl = ApiClient.getImageUrl(trailer.Id, {
|
||||
maxwidth: 500,
|
||||
tag: imageTags.Primary,
|
||||
type: "primary"
|
||||
});
|
||||
|
||||
html += '<img src="' + imgUrl + '" />';
|
||||
} else {
|
||||
html += '<img src="css/images/itemDetails/videoDefault.png"/>';
|
||||
html += '<img src="css/images/items/detail/video.png"/>';
|
||||
}
|
||||
|
||||
html += '<div class="posterViewItemText posterViewItemPrimaryText">' + trailer.Name + '</div>';
|
||||
|
@ -516,20 +517,22 @@
|
|||
html += '<div class="posterViewItem posterViewItemWithDualText">';
|
||||
html += '<a href="#play-Special-' + i + '" onclick="ItemDetailPage.playSpecial(' + i + ');">';
|
||||
|
||||
if (special.ImageTag) {
|
||||
var imageTags = special.ImageTags || {};
|
||||
|
||||
var imgUrl = ApiClient.getImageUrl(item.Id, {
|
||||
width: 500,
|
||||
tag: special.ImageTag,
|
||||
type: "Special",
|
||||
index: i
|
||||
if (imageTags.Primary) {
|
||||
|
||||
var imgUrl = ApiClient.getImageUrl(special.Id, {
|
||||
maxwidth: 500,
|
||||
tag: imageTags.Primary,
|
||||
type: "primary"
|
||||
});
|
||||
|
||||
html += '<img src="' + imgUrl + '" />';
|
||||
} else {
|
||||
html += '<img src="css/images/itemDetails/videoDefault.png"/>';
|
||||
html += '<img src="css/images/items/detail/video.png"/>';
|
||||
}
|
||||
|
||||
|
||||
html += '<div class="posterViewItemText posterViewItemPrimaryText">' + special.Name + '</div>';
|
||||
html += '<div class="posterViewItemText">';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue