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: type,
|
||||
id: id,
|
||||
name: result.name,
|
||||
url: result.shortUrl,
|
||||
streamUrl: result.shortUrl,
|
||||
purchaseUrl: null,
|
||||
artwork: result.icon.replace("http:", "").replace("square-200", "square-250"),
|
||||
artist: {
|
||||
name: result.artist
|
||||
|
@ -74,7 +75,8 @@ module.exports.parseUrl = function(url) {
|
|||
type: type,
|
||||
id: id,
|
||||
name: result.name,
|
||||
url: result.shortUrl,
|
||||
streamUrl: result.shortUrl,
|
||||
purchaseUrl: null,
|
||||
artwork: result.icon.replace("http:", "").replace("square-200", "square-250"),
|
||||
artist: {
|
||||
name: result.artist
|
||||
|
@ -120,7 +122,8 @@ module.exports.search = function(data) {
|
|||
type: type,
|
||||
id: id,
|
||||
name: result.name,
|
||||
url: result.shortUrl,
|
||||
streamUrl: result.shortUrl,
|
||||
purchaseUrl: null,
|
||||
artwork: result.icon.replace("http:", "").replace("square-200", "square-250"),
|
||||
artist: {
|
||||
name: result.artist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue