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",
|
||||
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:"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue