2012-08-20, 21:09
(2012-08-20, 20:44)Mizaki Wrote: Thanks for the quick turn around. First thing I've come across is a bit weird:Yeah it's a bit of a problem that there is no automatic validation (or information in the JSON schema) about what data type each field expects and what operators are valid. You should actually get an error when trying to use the "label" field in VideoLibrary.GetTVShows. Furthermore as already mentioned "year" expects an integer and "endswith" does not work for integers but only for strings. But the result is still very odd. No clue what happens
returns:Code:{"jsonrpc": "2.0", "method": "VideoLibrary.GetTVShows", "params": { "filter": { "and": [ { "field": "year", "operator": "endswith", "value": "10" }, { "field": "label", "operator": "startswith", "value": "v" } ] }, "properties" : ["year"] }, "id": 1}
and if I do the year value as int I get all the TV shows. Now I realise "label" isn't actually a valid field name and it works as expect if I use the correct "title" field name and year as int but I still don't think it should do what it isCode:{"id": 1,"jsonrpc": "2.0","result": {"limits": {"end": 1,"start": 0,"total": 1},"tvshows": ["label": "The X-Files","tvshowid": 2,"year": 1993}]}}
I need to think about a way to get more automatic validation and information about these filtering rules.
(2012-08-20, 20:51)Tolriq Wrote: Is there a way to get .strm files in Files.GetDirectory with media set to video ?.strm is in the list of video extensions so they should be listed by Files.GetDirectory when "media" is set to "video".
It seems that they don't list even if the strm are scraped in Xbmc database.