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:
parent
876fbee53e
commit
ed46ee5254
4 changed files with 28 additions and 31 deletions
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue