We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b32f11 commit c2e3436Copy full SHA for c2e3436
src/index.js
@@ -47,9 +47,7 @@ const createGetData = fetch => async (url, opts) => {
47
Buffer.from(decodeURIComponent(script.children[0].content), 'base64')
48
).data.entity
49
// they removed/renamed some things, which for backwards compatibility we need to add back
50
- data.external_urls = {
51
- spotify: 'https://open.spotify.com/track/' + data.uri
52
- }
+ data.external_urls = { spotify: spotifyURI.formatOpenURL(data.uri) }
53
data.release_date = data.releaseDate.isoString
54
data.audio = data.audioPreview.url
55
return normalizeData({ data })
0 commit comments