1
0
Fork 0
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:
Riccardo Zanotto 2019-01-11 18:16:10 +01:00
parent 754d68a286
commit 6d1d6edeb4

View file

@ -252,7 +252,7 @@ define(["loading", "appRouter", "layoutManager", "connectionManager", "cardBuild
var imgUrl, screenWidth = screen.availWidth,
hasbackdrop = !1,
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, {
type: "Thumb",
index: 0,
@ -1206,4 +1206,4 @@ define(["loading", "appRouter", "layoutManager", "connectionManager", "cardBuild
currentItem = null, self._currentPlaybackMediaSources = null, self.currentRecordingFields = null
})
}
});
});