Add support for iTunes purchases
This commit is contained in:
parent
1b2c568ac6
commit
da5daeeffb
9 changed files with 140 additions and 15 deletions
|
@ -28,7 +28,8 @@ module.exports.lookupId = function(id, type, next) {
|
|||
type: "album",
|
||||
id: album.albumId,
|
||||
name: album.name,
|
||||
url: "https://play.google.com/music/listen#/album/" + album.albumId,
|
||||
streamUrl: "https://play.google.com/music/listen#/album/" + album.albumId,
|
||||
purchaseUrl: "https://play.google.com/store/music/album?id=" + album.albumId,
|
||||
artwork: album.albumArtRef.replace("http:", ""),
|
||||
artist: {
|
||||
name: album.artist
|
||||
|
@ -42,7 +43,8 @@ module.exports.lookupId = function(id, type, next) {
|
|||
type: "track",
|
||||
id: track.nid,
|
||||
name: track.title,
|
||||
url: "https://play.google.com/music/listen#/track/" + track.nid + "/" + track.albumId,
|
||||
streamUrl: "https://play.google.com/music/listen#/track/" + track.nid + "/" + track.albumId,
|
||||
purchaseUrl: "https://play.google.com/store/music/album?id=" + track.albumId,
|
||||
artwork: track.albumArtRef[0].url.replace("http:", ""),
|
||||
album: {
|
||||
name: track.album
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue