From 94f65820a6d2016c2bbfd8f7afc2ff2e5a8cb796 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 2 Jul 2024 10:17:53 -0400 Subject: [PATCH] Remove usage of deprecated getItemImageUrl --- src/components/listview/List/listHelper.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/listview/List/listHelper.ts b/src/components/listview/List/listHelper.ts index d909feb5685..c27a073ef08 100644 --- a/src/components/listview/List/listHelper.ts +++ b/src/components/listview/List/listHelper.ts @@ -138,23 +138,23 @@ export function getChannelImageUrl( let itemId; const fillWidth = size; const fillHeight = size; - const imgType = ImageType.Primary; if (item.ChannelId && item.ChannelPrimaryImageTag) { imgTag = item.ChannelPrimaryImageTag; itemId = item.ChannelId; } - if (api && imgTag && imgType && itemId) { - const response = api.getItemImageUrl(itemId, imgType, { - fillWidth: fillWidth, - fillHeight: fillHeight, - tag: imgTag - }); + if (api && imgTag && itemId) { + const response = getImageApi(api) + .getItemImageUrlById(itemId, ImageType.Primary, { + fillWidth, + fillHeight, + tag: imgTag + }); return { imgUrl: response, - blurhash: item.ImageBlurHashes?.[imgType]?.[imgTag] + blurhash: item.ImageBlurHashes?.[ImageType.Primary]?.[imgTag] }; }