Add support for iTunes purchases
This commit is contained in:
parent
1b2c568ac6
commit
da5daeeffb
9 changed files with 140 additions and 15 deletions
|
@ -34,7 +34,8 @@ module.exports.lookupId = function(id) {
|
|||
type: "album",
|
||||
id: result.id,
|
||||
name: result.title,
|
||||
url: "https://listen.beatsmusic.com/albums/" + result.id,
|
||||
streamUrl: "https://listen.beatsmusic.com/albums/" + result.id,
|
||||
purchaseUrl: null,
|
||||
artwork: artwork,
|
||||
artist: {
|
||||
name: result.artist_display_name
|
||||
|
@ -52,7 +53,8 @@ module.exports.lookupId = function(id) {
|
|||
type: "track",
|
||||
id: result.id,
|
||||
name: result.title,
|
||||
url: "https://listen.beatsmusic.com/albums/" + result.refs.album.id + "/tracks/" + result.id,
|
||||
streamUrl: "https://listen.beatsmusic.com/albums/" + result.refs.album.id + "/tracks/" + result.id,
|
||||
purchaseUrl: null,
|
||||
artwork: artwork,
|
||||
artist: {
|
||||
name: result.artist_display_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue