Kodi Community Forum

Full Version: Getting watched flag in VideoLibrary.GetMovies
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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)))
Yes, i though about the playcount, but many times a movie has been played just a couple of minutes, not watched a good chunk.
You want playcount.
(2015-03-16, 20:32)Mizaki Wrote: [ -> ]You want playcount.

Yes sir. *bows and retreats quietly...*