2013-01-24, 08:46
Thanks for the help, definitely not redundant(pointed me in the right direction actually)... Actually the MPAA rating is filterable('mpaarating') along with 'playcount'(for unwatched movies), 'hastrailer'(don't need to fetch movies with out trailers.)
This is probably the call I will be using as I can control all aspects:
Having any of them blank, basically disables the filter.
Thanks again.
Only if it does not use the old HTTPAPI for function calls...
This is probably the call I will be using as I can control all aspects:
Code:
jsonquery = '''{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "properties" : ["trailer","mpaa", "genre"], "filter": { "and": [ { "field": "playcount", "operator": "is", "value": "%s" }, { "field": "mpaarating", "operator": "contains", "value": "%s" }, { "field": "genre", "operator": "contains", "value": "%s" }, { "field": "hastrailer", "operator": "true", "value": "true" } ] } }, "id": 1}''' % ( unwatched, movie_mpaa, movie_genre )
Having any of them blank, basically disables the filter.
Thanks again.
(2013-01-24, 08:24)Tomkun Wrote: Does the home automation stuff still work with the Frodo version? I can't seem to get it to work, but I don't know if it's because of me or not.
Only if it does not use the old HTTPAPI for function calls...