1
0
Fork 0
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:
Luke Pulverenti 2013-11-04 14:04:23 -05:00
parent 47687eb5e9
commit 6f07806e09
2 changed files with 16 additions and 6 deletions

View file

@ -152,22 +152,32 @@
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 += '<div class="remoteImageDetails">';
html += image.ProviderName;
html += '</div>';
if (image.Width || image.Height) {
if (image.Width || image.Height || image.Language) {
html += '<div class="remoteImageDetails">';
html += image.Width + ' x ' + image.Height;
if (image.Language) {
if (image.Width || image.Height) {
html += image.Width + ' x ' + image.Height;
html += ' • ' + image.Language;
if (image.Language) {
html += ' • ' + image.Language;
}
} else {
if (image.Language) {
html += image.Language;
}
}
html += '</div>';
}

View file

@ -272,7 +272,7 @@
{ name: "Photos*", value: "photos" },
{ name: "Trailers", value: "trailers" },
{ name: "Adult videos", value: "adultvideos" },
{ name: "General or mixed content", value: "mixed", isSelectable: false }
{ name: "Mixed content", value: "mixed" }
];
},