Add: More infos for image

This commit is contained in:
2022-04-14 23:30:36 +02:00
parent cbad29dfd9
commit 5c9d670460
2 changed files with 10 additions and 2 deletions

View File

@@ -19,5 +19,9 @@ export interface SpotifyTrack {
}
author: string
duration: number
image: string
image: {
url: string
width: number
height: number
}
}

View File

@@ -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,