Files
DevOps/Kodi/Update library.md
2025-10-26 12:44:00 +01:00

883 B

Update Library

Command line

To add new content to the library (Update):

Video: curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://kodi:kodipass1234@localhost:8080/jsonrpc

Audio: curl --data-binary '{ "jsonrpc": "2.0", "method": "AudioLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://kodi:kodipass1234@localhost:8080/jsonrpc

To remove content from library (Clean):

Video: curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Clean", "id": "mybash"}' -H 'content-type: application/json;' http://kodi:kodipass1234@localhost:8080/jsonrpc

Audio: curl --data-binary '{ "jsonrpc": "2.0", "method": "AudioLibrary.Clean", "id": "mybash"}' -H 'content-type: application/json;' http://kodi:kodipass1234@localhost:8080/jsonrpc