Use better urls for Google streaming
This commit is contained in:
parent
211949c648
commit
c56e66e12b
1 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ module.exports.lookupId = function(id, type) {
|
||||||
type: "album",
|
type: "album",
|
||||||
id: album.albumId,
|
id: album.albumId,
|
||||||
name: album.name,
|
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,
|
purchaseUrl: "https://play.google.com/store/music/album?id=" + album.albumId,
|
||||||
artwork: {
|
artwork: {
|
||||||
small: album.albumArtRef.replace("http:", "https:"),
|
small: album.albumArtRef.replace("http:", "https:"),
|
||||||
|
@ -76,7 +76,7 @@ module.exports.lookupId = function(id, type) {
|
||||||
type: "track",
|
type: "track",
|
||||||
id: track.nid,
|
id: track.nid,
|
||||||
name: track.title,
|
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,
|
purchaseUrl: "https://play.google.com/store/music/album?id=" + track.albumId,
|
||||||
artwork: {
|
artwork: {
|
||||||
small: track.albumArtRef[0].url.replace("http:", "https:"),
|
small: track.albumArtRef[0].url.replace("http:", "https:"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue