2015-03-16, 04:03
Hi there. I've been lurking the API doc and cant find a property to get if a movie has the watched flag or not, any tip?
import json
import xbmc
request = {"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "filter": {"field": "playcount", "operator": "greaterthan", "value": "0"}, "limits": { "start" : 0 }, "properties": ["playcount"], "sort": { "order": "ascending", "method": "label" } }, "id": "libMovies"}
results = json.loads(xbmc.executeJSONRPC(json.dumps(request)))