Use SSL urls for all artwork (no more protocol relative)

This commit is contained in:
Jonathan Cremin 2014-12-06 13:28:38 +00:00
parent 65af698a78
commit 90c59078c0
5 changed files with 11 additions and 11 deletions

View file

@ -30,7 +30,7 @@ module.exports.lookupId = function(id, type) {
name: data.name,
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:", ""),
artwork: data.images ? data.images[1].url.replace("http:", "https:") : data.album.images[1].url.replace("http:", "https:"),
artist: {
name: artist.name
}
@ -43,7 +43,7 @@ module.exports.lookupId = function(id, type) {
name: data.name,
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:", ""),
artwork: data.images ? data.images[1].url.replace("http:", "https:") : data.album.images[1].url.replace("http:", "https:"),
artist: {
name: artist.name
},