key_other_entries
🟢 Stable
This API is stable since festivald v1.0.0
.
Input a Song
key, retrieve all Song
's in the same Album
in Entry
form.
The Entry
's are sorted by Track + Disc order
.
Inputs
Field | Type | Description |
---|---|---|
key | Song key (unsigned integer) | See Key |
Outputs
Field | Type | Description |
---|---|---|
len | unsigned integer | How many Entry 's there are |
entries | array of Entry objects | See Entry |
Example Request
festival-cli key_other_entries --key 2444
curl http://localhost:18425 -d '{"jsonrpc":"2.0","id":0,"method":"key_other_entries","params":{"key":2444}}'
Example Response
{
"jsonrpc": "2.0",
"result": {
"len": 2,
"entries": [
{
"path": "/home/hinto/Music/Rex Orange County/RAINBOW/SUNFLOWER.mp3",
"key_artist": 62,
"key_album": 222,
"key_song": 2444,
"artist": "Rex Orange County",
"album": "RAINBOW",
"song": "SUNFLOWER"
},
{
"path": "/home/hinto/Music/Rex Orange County/RAINBOW/BEST FRIEND.mp3",
"key_artist": 62,
"key_album": 222,
"key_song": 2398,
"artist": "Rex Orange County",
"album": "RAINBOW",
"song": "BEST FRIEND"
}
]
},
"id": 0
}