mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #606 - Add manual image selection for Seasons
This commit is contained in:
parent
47687eb5e9
commit
6f07806e09
2 changed files with 16 additions and 6 deletions
|
@ -152,22 +152,32 @@
|
||||||
cssClass += currentItem.Type == "Episode" ? " remoteBackdropImage" : " remotePosterImage";
|
cssClass += currentItem.Type == "Episode" ? " remoteBackdropImage" : " remotePosterImage";
|
||||||
}
|
}
|
||||||
|
|
||||||
html += '<a target="_blank" href="' + image.Url + '" class="' + cssClass + '" style="background-image:url(\'' + image.Url + '\');">';
|
var displayUrl = image.ThumbnailUrl || image.Url;
|
||||||
|
html += '<a target="_blank" href="' + image.Url + '" class="' + cssClass + '" style="background-image:url(\'' + displayUrl + '\');">';
|
||||||
html += '</a>';
|
html += '</a>';
|
||||||
|
|
||||||
html += '<div class="remoteImageDetails">';
|
html += '<div class="remoteImageDetails">';
|
||||||
html += image.ProviderName;
|
html += image.ProviderName;
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
||||||
if (image.Width || image.Height) {
|
if (image.Width || image.Height || image.Language) {
|
||||||
|
|
||||||
html += '<div class="remoteImageDetails">';
|
html += '<div class="remoteImageDetails">';
|
||||||
|
|
||||||
|
if (image.Width || image.Height) {
|
||||||
html += image.Width + ' x ' + image.Height;
|
html += image.Width + ' x ' + image.Height;
|
||||||
|
|
||||||
if (image.Language) {
|
if (image.Language) {
|
||||||
|
|
||||||
html += ' • ' + image.Language;
|
html += ' • ' + image.Language;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (image.Language) {
|
||||||
|
|
||||||
|
html += image.Language;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -272,7 +272,7 @@
|
||||||
{ name: "Photos*", value: "photos" },
|
{ name: "Photos*", value: "photos" },
|
||||||
{ name: "Trailers", value: "trailers" },
|
{ name: "Trailers", value: "trailers" },
|
||||||
{ name: "Adult videos", value: "adultvideos" },
|
{ name: "Adult videos", value: "adultvideos" },
|
||||||
{ name: "General or mixed content", value: "mixed", isSelectable: false }
|
{ name: "Mixed content", value: "mixed" }
|
||||||
];
|
];
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue