More bluebird, fetch larger artwork
This commit is contained in:
parent
e671b823e9
commit
23896f7ee6
16 changed files with 117 additions and 81 deletions
|
@ -29,6 +29,7 @@ module.exports.lookupId = function(id) {
|
|||
var parsed = parse(result.shortUrl)
|
||||
var id = parsed.path.replace("/x/", "").replace("/", "");
|
||||
var type = result.album ? "track" : "album";
|
||||
|
||||
var item = {
|
||||
service: "rdio",
|
||||
type: type,
|
||||
|
@ -36,7 +37,10 @@ module.exports.lookupId = function(id) {
|
|||
name: result.name,
|
||||
streamUrl: result.shortUrl,
|
||||
purchaseUrl: null,
|
||||
artwork: result.icon.replace("square-200", "square-250").replace("http:", "https:"),
|
||||
artwork: {
|
||||
small: result.icon.replace("square-200", "square-250").replace("http:", "https:"),
|
||||
large: result.icon.replace("square-200", "square-600").replace("http:", "https:")
|
||||
},
|
||||
artist: {
|
||||
name: result.artist
|
||||
}
|
||||
|
@ -89,7 +93,10 @@ module.exports.parseUrl = function(url) {
|
|||
name: result.name,
|
||||
streamUrl: result.shortUrl,
|
||||
purchaseUrl: null,
|
||||
artwork: result.icon.replace("square-200", "square-250").replace("http:", "https:"),
|
||||
artwork: {
|
||||
small: result.icon.replace("square-200", "square-250").replace("http:", "https:"),
|
||||
large: result.icon.replace("square-200", "square-600").replace("http:", "https:")
|
||||
},
|
||||
artist: {
|
||||
name: result.artist
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue