mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-04 10:05:35 -06:00
load image urls
This commit is contained in:
@@ -4,13 +4,5 @@ import { getImageApi } from "@jellyfin/sdk/lib/utils/api"
|
||||
|
||||
export function fetchItemImage(api: Api, itemId: string, imageType?: ImageType, width?: number) {
|
||||
|
||||
return getImageApi(api)
|
||||
.getItemImage({
|
||||
imageType: imageType ? imageType : ImageType.Primary,
|
||||
itemId,
|
||||
width: width
|
||||
})
|
||||
.then((response) => {
|
||||
return response.data
|
||||
})
|
||||
return getImageApi(api).getItemImageUrlById(itemId, imageType)
|
||||
}
|
||||
Reference in New Issue
Block a user