Update lib/spotify.js
Browse files- lib/spotify.js +1 -1
lib/spotify.js
CHANGED
|
@@ -63,7 +63,7 @@ class Spotify {
|
|
| 63 |
duration: toTime(item.duration_ms),
|
| 64 |
artist: item.artists.map((artist) => artist.name).join(" & "),
|
| 65 |
url: item.external_urls.spotify,
|
| 66 |
-
thumbnail: item.album.images,
|
| 67 |
...item
|
| 68 |
}));
|
| 69 |
} catch (error) {
|
|
|
|
| 63 |
duration: toTime(item.duration_ms),
|
| 64 |
artist: item.artists.map((artist) => artist.name).join(" & "),
|
| 65 |
url: item.external_urls.spotify,
|
| 66 |
+
thumbnail: item.album.images[0]?.url,
|
| 67 |
...item
|
| 68 |
}));
|
| 69 |
} catch (error) {
|