2014-06-15, 18:07
Hello,
is it possible to filter the results from the "AudioLibrary.GetSongs" method by musicbrainz information, like the musicbrainzalbumid? I was trying something like:
but it returns an error:
Unfortunately, I couldn't find much about the filter field. Especially what those List.Filter.* are about and how they, if all, relate to the filter-field.
Any help and advice is much appreciated.
is it possible to filter the results from the "AudioLibrary.GetSongs" method by musicbrainz information, like the musicbrainzalbumid? I was trying something like:
Code:
{"jsonrpc": "2.0", "method": "AudioLibrary.GetSongs", "params": {"filter": {"value": "c183522b-1d38-3e83-aaaf-fc3fc87cdc05", "field": "musicbrainzalbumid", "operator": "is"}, "properties": ["title"]}, "id": 1}
but it returns an error:
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":1,"jsonrpc":"2.0"}
Unfortunately, I couldn't find much about the filter field. Especially what those List.Filter.* are about and how they, if all, relate to the filter-field.
Any help and advice is much appreciated.