开发者

Does XBMC web service have a call to instruct the service to update its library?

Does XBMC web service have a call to instruct the service to update its 开发者_开发知识库library? I can't seem to find it in the documentation but this would seem like a pretty basic thing to include.


Yes! In the current Dharma release, there is the HTTP API (deprecated) and the JSON-RPC API. In a few weeks, with the next release (you can also download the nightly build, but beware of bugs) - the is a updated JSON-RPC API: http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v3#VideoLibrary.Scan

Sending this:

{"id":1,"method":"VideoLibrary.Scan","params":[],"jsonrpc":"2.0"}

Should do the trick for the next release. (TCP Port 8080 in my case)

{"id":1,"method":"VideoLibrary.ScanForContent","params":[],"jsonrpc":"2.0"}

For the current Dharma-Release.


Here's a small program that does that using Python https://github.com/asafge/TV_Mover

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜