spotify-url-info
Advanced tools
Comparing version 3.2.17 to 3.2.18
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/microlinkhq/spotify-url-info", | ||
"version": "3.2.17", | ||
"version": "3.2.18", | ||
"main": "src/index.js", | ||
@@ -30,2 +30,6 @@ "author": { | ||
{ | ||
"name": "Victor", | ||
"email": "victor@offspringdigital.com" | ||
}, | ||
{ | ||
"name": "Eitho", | ||
@@ -32,0 +36,0 @@ "email": "62159998+Eithoo@users.noreply.github.com" |
@@ -90,3 +90,4 @@ 'use strict' | ||
const getImages = data => data.coverArt?.sources || data.images | ||
const getImages = data => | ||
data.coverArt?.sources || data.images || data.visualIdentity.image | ||
@@ -127,3 +128,3 @@ const getDate = data => data.releaseDate?.isoString || data.release_date | ||
artist: track.artist, | ||
image: getImages(data).reduce((a, b) => (a.width > b.width ? a : b)).url, | ||
image: getImages(data)?.reduce((a, b) => (a.width > b.width ? a : b))?.url, | ||
audio: track.previewUrl, | ||
@@ -130,0 +131,0 @@ link: getLink(data), |
12536
143