2015-02-03, 18:41
Hi,
Having problem getting all songs filtered by album id
I've found that I can filter with the name of the album :
Is there anyway to filter by albumid?
Tried the following:
and got result:
Thanks very much
Having problem getting all songs filtered by album id
I've found that I can filter with the name of the album :
Code:
http://xbmc:[email protected]:2223/jsonrpc?request={"jsonrpc": "2.0", "method": "AudioLibrary.GetSongs", "params": { "limits": { "start" : 0, "end": 25 }, "properties": [ "artist", "duration", "album", "track" ],"filter": {"field": "album", "operator": "is", "value": "Rihana"}, "sort": { "order": "ascending", "method": "track", "ignorearticle": true } }, "id": "libSongs"}
Is there anyway to filter by albumid?
Tried the following:
Code:
http://xbmc:[email protected]:2223/jsonrpc?request={"jsonrpc": "2.0", "method": "AudioLibrary.GetSongs", "params": { "properties": [ "albumid","artist", "duration", "album", "track" ],"filter": {"field": "albumid", "operator": "is", "value": "1"} }, "id": "libSongs"}
and got result:
Code:
{
"error": {
"code": -32602,
"data": {
"method": "AudioLibrary.GetSongs",
"stack": {
"message": "Received value does not match any of the union type definitions",
"name": "filter",
"property": {
"type": "string"
},
"type": "object"
}
},
"message": "Invalid params."
},
"id": "libSongs",
"jsonrpc": "2.0"
}
Thanks very much