mirror of
https://github.com/Jellify-Music/App.git
synced 2026-05-03 17:19:42 -05:00
adjust player artwork resolution and query stale time
This commit is contained in:
@@ -10,9 +10,7 @@ export function fetchItemImage(itemId: string, imageType?: ImageType, size?: num
|
||||
.getItemImage({
|
||||
itemId,
|
||||
imageType: imageType ? imageType : ImageType.Primary,
|
||||
format: ImageFormat.Jpg,
|
||||
height: size ?? queryConfig.images.height,
|
||||
width: size ?? queryConfig.images.width
|
||||
...queryConfig.playerArtwork,
|
||||
}, {
|
||||
responseType: 'blob'
|
||||
})
|
||||
|
||||
@@ -20,9 +20,9 @@ export const queryConfig = {
|
||||
format: ImageFormat.Png
|
||||
},
|
||||
playerArtwork: {
|
||||
fillHeight: 1000,
|
||||
fillWidth: 1000,
|
||||
height: 1000,
|
||||
width: 1000,
|
||||
format: ImageFormat.Jpg
|
||||
},
|
||||
staleTime: 1000 * 60
|
||||
staleTime: 1000 * 60 * 60 * 24 // 1 Day
|
||||
}
|
||||
Reference in New Issue
Block a user