mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Show album thumbnail and artist image in page itemdetail
This commit is contained in:
parent
754d68a286
commit
6d1d6edeb4
1 changed files with 2 additions and 2 deletions
|
@ -252,7 +252,7 @@ define(["loading", "appRouter", "layoutManager", "connectionManager", "cardBuild
|
||||||
var imgUrl, screenWidth = screen.availWidth,
|
var imgUrl, screenWidth = screen.availWidth,
|
||||||
hasbackdrop = !1,
|
hasbackdrop = !1,
|
||||||
itemBackdropElement = page.querySelector("#itemBackdrop"),
|
itemBackdropElement = page.querySelector("#itemBackdrop"),
|
||||||
usePrimaryImage = "Video" === item.MediaType && "Movie" !== item.Type && "Trailer" !== item.Type || item.MediaType && "Video" !== item.MediaType;
|
usePrimaryImage = ("Video" === item.MediaType && "Movie" !== item.Type && "Trailer" !== item.Type) || (item.MediaType && "Video" !== item.MediaType) || ("MusicAlbum" === item.Type) || ("MusicArtist" === item.Type);
|
||||||
return "Program" === item.Type && item.ImageTags && item.ImageTags.Thumb ? (imgUrl = apiClient.getScaledImageUrl(item.Id, {
|
return "Program" === item.Type && item.ImageTags && item.ImageTags.Thumb ? (imgUrl = apiClient.getScaledImageUrl(item.Id, {
|
||||||
type: "Thumb",
|
type: "Thumb",
|
||||||
index: 0,
|
index: 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue