scnario commited on
Commit
c30a7c4
·
verified ·
1 Parent(s): 522e078

Update lib/spotify.js

Browse files
Files changed (1) hide show
  1. 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) {