Getting watched flag in VideoLibrary.GetMovies
#1
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?
Reply
#2
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)))
Reply
#3
Yes, i though about the playcount, but many times a movie has been played just a couple of minutes, not watched a good chunk.
Reply
#4
You want playcount.
Image
AWXi - Ajax web interface. Wiki
Reply
#5
(2015-03-16, 20:32)Mizaki Wrote: You want playcount.

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

Logout Mark Read Team Forum Stats Members Help
Getting watched flag in VideoLibrary.GetMovies0