map_album_songs
🟡 Incomplete
This API's output may have additions in the future.
Input an Artist
name and Album
title, retrieve all the Song
's in that Album
.
The Song
's are sorted by Track + Disc order
.
Inputs
Field | Type | Description |
---|---|---|
artist | string | Artist name |
album | string | Album title |
Outputs
Field | Type | Description |
---|---|---|
len | unsigned integer | How many Song 's there are |
songs | array of Song objects | See Song |
Example Request
festival-cli map_album_songs --artist "Rex Orange County" --album RAINBOW
curl http://localhost:18425 -d '{"jsonrpc":"2.0","id":0,"method":"map_album_songs","params":{"artist":"Rex Orange County","album":"RAINBOW"}}'
Example Response
{
"jsonrpc": "2.0",
"result": {
"len": 2,
"songs": [
{
"title": "SUNFLOWER",
"map": 2444,
"album": 222,
"runtime": 252,
"sample_rate": 44100,
"track": 1,
"disc": null,
"mime": "audio/mpeg",
"extension": "mp3"
},
{
"title": "BEST FRIEND",
"map": 2398,
"album": 222,
"runtime": 262,
"sample_rate": 44100,
"track": 2,
"disc": null,
"mime": "audio/mpeg",
"extension": "mp3"
}
]
},
"id": 0
}