2015-02-12, 04:56
Hi there. The folowing code just gets me all XBMC parameters instead of movies, what am i missing?
PHP Code:
import requests
import json
url = "http://localhost:8080/jsonrpc"
headers = {'content-type': 'application/json'}
payload = {"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "filter": {"field": "playcount", "operator": "is", "value": "0"}, "limits": { "start" : 0, "end": 75 }, "properties" : ["art", "rating", "thumbnail", "playcount", "file"], "sort": { "order": "ascending", "method": "label", "ignorearticle": 'true' } }, "id": "libMovies"}
r = requests.get(url, params=payload, headers=headers);
print(r.json());