2013-03-05, 14:15
Apparently it expects an integer, for example running this request
yields this response
which matches my download history for the last 7 days.
Code:
http://localhost:8000/jsonrpc?request={"jsonrpc":"2.0","method":"VideoLibrary.GetMovies","params":{"properties":["playcount","lastplayed","resume","dateadded"],"filter":{"and":[{"field":"playcount","operator":"is","value":"0"},{"field":"dateadded","operator":"inthelast","value":"7"}]}},"id":1}
yields this response
Code:
{"id":1,"jsonrpc":"2.0","result":{"limits":{"end":2,"start":0,"total":2},"movies":[{"dateadded":"2013-02-28 21:43:01","label":"The Bay","lastplayed":"","movieid":42,"playcount":0,"resume":{"position":0,"total":0}},{"dateadded":"2013-03-01 13:37:08","label":"Zero Dark Thirty","lastplayed":"","movieid":43,"playcount":0,"resume":{"position":0,"total":0}}]}}
which matches my download history for the last 7 days.