spotify-url-info
Advanced tools
Comparing version 2.2.8 to 2.2.9
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/microlinkhq/spotify-url-info", | ||
"version": "2.2.8", | ||
"version": "2.2.9", | ||
"main": "src/index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -79,7 +79,9 @@ 'use strict' | ||
const artist = [] | ||
.concat(track.artists) | ||
.filter(Boolean) | ||
.map(a => a.name) | ||
.join(' & ') | ||
const artist = track.show | ||
? track.show.publisher | ||
: [] | ||
.concat(track.artists) | ||
.filter(Boolean) | ||
.map(a => a.name) | ||
.join(' & ') | ||
@@ -94,3 +96,3 @@ return Promise.resolve({ | ||
image: images.reduce((a, b) => (a.width > b.width ? a : b)).url, | ||
audio: track.preview_url, | ||
audio: track.audio_preview_url || track.preview_url, | ||
link: data.external_urls.spotify, | ||
@@ -97,0 +99,0 @@ embed: `https://embed.spotify.com/?uri=${data.uri}` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13255
187