Kodi jsonrpc 知道是否看过一集

Kodi jsonrpc know if an episode has been see

我试图在我的 Kodi jsonrpc api 上检索电视节目的剧集列表,它 return 是剧集列表,但文档中只显示 ID 和名称,而不是所有属性http://kodi.wiki/view/JSON-RPC_API/v8#Video.Details.Episode

这是我的要求:

{"jsonrpc":"2.0","id":1,"method":"VideoLibrary.GetEpisodes","params":{"tvshowid":11}}

这是回复: { "id": 1, "jsonrpc": "2.0", "result": { "episodes": [ { "episodeid": 303, "label": "4x01. Success Failure" }, { "episodeid": 318, "label": "4x02. Terms of Service" }, { "episodeid": 339, "label": "4x03. Intellectual Property" }, { "episodeid": 354, "label": "4x04. Teambuilding Exercise" }, { "episodeid": 393, "label": "4x05. The Blood Boy" }, { "episodeid": 414, "label": "4x06. Customer Service" }, { "episodeid": 487, "label": "4x07. The Patent Troll" } ], "limits": { "end": 7, "start": 0, "total": 7 } } }

在参数数组中添加这个 'properties': ['season', 'episode', 'playcount'] 例如

{"jsonrpc":"2.0","id":1,"method":"VideoLibrary.GetEpisodes","params":{"tvshowid":11, "properties": ["season", "episode", "playcount"]}}

这会将三个属性添加到响应中。