1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Update with latest API changes

This commit is contained in:
ferferga 2020-05-27 19:24:51 +02:00
commit 456223c2b9
3 changed files with 8 additions and 5 deletions

View file

@ -506,7 +506,7 @@ import 'programStyles';
let imgTag = null;
let coverImage = false;
let uiAspect = null;
let imgType;
let imgType = null;
if (options.preferThumb && item.ImageTags && item.ImageTags.Thumb) {
imgType = 'Thumb';
@ -613,9 +613,11 @@ import 'programStyles';
});
}
let blurHashes = options.imageBlurhashes || item.ImageBlurHashes || {};
return {
imgUrl: imgUrl,
blurhash: (item.ImageBlurHashes || {})[imgType],
blurhash: (blurHashes[imgType] || {})[imgTag],
forceName: forceName,
coverImage: coverImage
};