mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Check for images for items without images
This commit is contained in:
parent
47d017ada1
commit
f3129f28ef
1 changed files with 8 additions and 6 deletions
|
@ -604,12 +604,14 @@ import 'programStyles';
|
||||||
imgTag = item.ParentBackdropImageTags[0];
|
imgTag = item.ParentBackdropImageTags[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
imgUrl = apiClient.getScaledImageUrl(item.Id, {
|
if (imgTag && imgType) {
|
||||||
type: imgType,
|
imgUrl = apiClient.getScaledImageUrl(item.Id, {
|
||||||
maxHeight: height,
|
type: imgType,
|
||||||
maxWidth: width,
|
maxHeight: height,
|
||||||
tag: imgTag
|
maxWidth: width,
|
||||||
});
|
tag: imgTag
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
imgUrl: imgUrl,
|
imgUrl: imgUrl,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue