2015-03-16, 04:03
2015-03-16, 07:32
This should work.
Code:
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)))
2015-03-16, 19:50
Yes, i though about the playcount, but many times a movie has been played just a couple of minutes, not watched a good chunk.
2015-03-16, 20:32
You want playcount.