From bd5eadee0c716bb26f6d297eaeeeb0b71b22ed1a Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Thu, 4 Dec 2014 21:58:27 +0000 Subject: [PATCH] sslize images from itunes and deezer --- lib/services/beats.js | 4 ++-- lib/services/itunes.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/services/beats.js b/lib/services/beats.js index 164575e..80e8066 100644 --- a/lib/services/beats.js +++ b/lib/services/beats.js @@ -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 }, diff --git a/lib/services/itunes.js b/lib/services/itunes.js index f9299b4..a586339 100644 --- a/lib/services/itunes.js +++ b/lib/services/itunes.js @@ -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 }