Use SSL urls for all artwork (no more protocol relative)
This commit is contained in:
parent
65af698a78
commit
90c59078c0
5 changed files with 11 additions and 11 deletions
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue