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

Replace deprecated getItemImageUrl with imageUrlsApi.getItemImageUrlById

This commit is contained in:
grafixeyehero 2024-02-01 19:41:08 +03:00
parent 876fbee53e
commit ed46ee5254
4 changed files with 28 additions and 31 deletions

View file

@ -5,6 +5,7 @@ import {
ImageType
} from '@jellyfin/sdk/lib/generated-client';
import { Api } from '@jellyfin/sdk';
import { getImageApi } from '@jellyfin/sdk/lib/utils/api/image-api';
import escapeHTML from 'escape-html';
import { appRouter } from 'components/router/appRouter';
@ -45,7 +46,7 @@ export function getCardLogoUrl(
}
if (api && imgTag && imgType && itemId) {
const response = api.getItemImageUrl(itemId, imgType, {
const response = getImageApi(api).getItemImageUrlById(itemId, imgType, {
height: logoHeight,
tag: imgTag
});