2016-01-27, 21:17
(2016-01-27, 21:03)DaveBlake Wrote: A good example that needs to be here from http://forum.kodi.tv/showthread.php?tid=251312
that shows the combining logic that filters on both AND and OR in GetAlbums
Code:{"jsonrpc": "2.0", "method": "AudioLibrary.GetAlbums", "params": { "filter": {"and": [{"or": [{"field": "genre", "operator": "contains", "value": "jazz"}, {"field": "genre", "operator": "contains", "value": "blues"}, {"field": "genre", "operator": "contains", "value": "swing"}]}, {"and":[{"field": "year", "operator": "greaterthan", "value": "1959"}, {"field": "year", "operator": "lessthan", "value": "1970"}]}]}, "properties": ["albumlabel", "artist", "title", "year", "thumbnail"], "sort": { "order": "ascending", "method": "artist", "ignorearticle": true }}, "id": "libAlbums"}
Sorry but could not resist
Great example of why genreid / genre is a problem Filtering on scraped genre vs tag / song genre id and displayed genre in Kodi and that can't be combined (And why combining filters for roleid does not work )