Use better urls for Google streaming

This commit is contained in:
Jonathan Cremin 2015-01-07 12:16:42 +00:00
parent 211949c648
commit c56e66e12b

View file

@ -56,7 +56,7 @@ module.exports.lookupId = function(id, type) {
type: "album",
id: album.albumId,
name: album.name,
streamUrl: "https://play.google.com/music/listen#/album/" + album.albumId,
streamUrl: "https://play.google.com/music/m/" + album.albumId + "?signup_if_needed=1",
purchaseUrl: "https://play.google.com/store/music/album?id=" + album.albumId,
artwork: {
small: album.albumArtRef.replace("http:", "https:"),
@ -76,7 +76,7 @@ module.exports.lookupId = function(id, type) {
type: "track",
id: track.nid,
name: track.title,
streamUrl: "https://play.google.com/music/listen#/track/" + track.nid + "/" + track.albumId,
streamUrl: "https://play.google.com/music/m/" + track.nid + "?signup_if_needed=1",
purchaseUrl: "https://play.google.com/store/music/album?id=" + track.albumId,
artwork: {
small: track.albumArtRef[0].url.replace("http:", "https:"),