sslize images from itunes and deezer

This commit is contained in:
Jonathan Cremin 2014-12-04 21:58:27 +00:00
parent dcca32c998
commit bd5eadee0c
2 changed files with 4 additions and 4 deletions

View file

@ -36,7 +36,7 @@ module.exports.lookupId = function(id) {
name: result.title,
streamUrl: "https://listen.beatsmusic.com/albums/" + result.id,
purchaseUrl: null,
artwork: artwork,
artwork: artwork.replace("http:", ""),
artist: {
name: result.artist_display_name
}
@ -55,7 +55,7 @@ module.exports.lookupId = function(id) {
name: result.title,
streamUrl: "https://listen.beatsmusic.com/albums/" + result.refs.album.id + "/tracks/" + result.id,
purchaseUrl: null,
artwork: artwork,
artwork: artwork.replace("http:", ""),
artist: {
name: result.artist_display_name
},

View file

@ -31,7 +31,7 @@ module.exports.lookupId = function(id, type) {
name: result.trackName ? result.trackName : result.collectionName,
streamUrl: null,
purchaseUrl: result.collectionViewUrl,
artwork: result.artworkUrl100.replace("100x100", "200x200"),
artwork: result.artworkUrl100.replace("100x100", "200x200").replace("http:", ""),
artist: {
name: result.artistName
}
@ -79,7 +79,7 @@ module.exports.search = function(data) {
name: result.trackName ? result.trackName : result.collectionName,
streamUrl: null,
purchaseUrl: result.collectionViewUrl,
artwork: result.artworkUrl100.replace("100x100", "200x200"),
artwork: result.artworkUrl100.replace("100x100", "200x200").replace("http:", ""),
artist: {
name: result.artistName
}