Add support for iTunes purchases

This commit is contained in:
Jonathan Cremin 2014-12-04 21:11:55 +00:00
parent 1b2c568ac6
commit da5daeeffb
9 changed files with 140 additions and 15 deletions

View file

@ -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