diff --git a/app/Types/ILocalSpotify.ts b/app/Types/ILocalSpotify.ts index 8d54963..2dcc810 100644 --- a/app/Types/ILocalSpotify.ts +++ b/app/Types/ILocalSpotify.ts @@ -19,5 +19,9 @@ export interface SpotifyTrack { } author: string duration: number - image: string + image: { + url: string + width: number + height: number + } } diff --git a/app/Utils/SongUtils.ts b/app/Utils/SongUtils.ts index 669d934..dd22249 100644 --- a/app/Utils/SongUtils.ts +++ b/app/Utils/SongUtils.ts @@ -167,7 +167,11 @@ export async function fetchTopTracks(range: Range) { name: track.device.name, type: track.device.type, }, - image: track.album.images[0].url, + image: { + url: track.album.images[0].url, + height: track.album.images[0].height, + width: track.album.images[0].width, + }, item: { name: track.name, type: track.type,