HOW-TO:Remotely update library

From Official Kodi Wiki
Revision as of 22:21, 12 February 2013 by Ned Scott (talk | contribs)
Jump to navigation Jump to search

Some quick methods to updating the XBMC library outside of the XBMC interface.

HTTP

  • Video: http://<User>:<Password>@<hostname>:<port>/jsonrpc?request={"jsonrpc":"2.0","method":"VideoLibrary.Scan"}
  • Audio: http://<User>:<Password>@<hostname>:<port>/jsonrpc?request={"jsonrpc":"2.0","method":"AudioLibrary.Scan"}

Command line

  • Video: curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://localhost:9191/jsonrpc
  • Audio: curl --data-binary '{ "jsonrpc": "2.0", "method": "AudioLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://localhost:9191/jsonrpc