Is it possible to initiate a Kodi Video library scan from the command prompt?
Use kodi-send
and the respective command
https://kodi.wiki/view/List_of_built-in_functions#Library_built-in.27s
Thanks a lot - could you give an example as well?
Really? I think kodi-send -h
and the link I have given you should be relatively clear, but it’s your special day.
kodi-send --action="updateLibrary(video)"
Thanks a lot. It wasn’t clear to me at all.
I was getting confused about those options for host and port and older examples with username and password.
i use this from linux (works on libreelec/pi and kodi/ubuntu too) all on one line:
curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://vero4k:8080/jsonrpc
Personally i use texturecache.py has many more features like purging old artwork, updating and cleaning libraries, backing up watched statuses…
Anyone knows if and how I can update/clean libraries in osmc via osmc skin ? Or via ssh ? texturecache.py seems too heavy considering I just want to delete stuff I deleted from the file server and add stuff I added to the file server.
Settings->Media->Library Video Clean library
Have you tried this from SSH:
kodi-send --action=“CleanLibrary(video)”