Add support for iTunes purchases
This commit is contained in:
parent
1b2c568ac6
commit
da5daeeffb
9 changed files with 140 additions and 15 deletions
|
@ -26,7 +26,8 @@ module.exports.lookupId = function(id, type) {
|
|||
type: type,
|
||||
id: data.id,
|
||||
name: data.name,
|
||||
url: "https://play.spotify.com/" + type + "/" + data.id,
|
||||
streamUrl: "https://play.spotify.com/" + type + "/" + data.id,
|
||||
purchaseUrl: null,
|
||||
artwork: data.images ? data.images[1].url.replace("http:", "") : data.album.images[1].url.replace("http:", ""),
|
||||
artist: {
|
||||
name: artist.name
|
||||
|
@ -38,7 +39,8 @@ module.exports.lookupId = function(id, type) {
|
|||
type: type,
|
||||
id: data.id,
|
||||
name: data.name,
|
||||
url: "https://play.spotify.com/" + type + "/" + data.id,
|
||||
streamUrl: "https://play.spotify.com/" + type + "/" + data.id,
|
||||
purchaseUrl: null,
|
||||
artwork: data.images ? data.images[1].url.replace("http:", "") : data.album.images[1].url.replace("http:", ""),
|
||||
artist: {
|
||||
name: artist.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue