Scan library from command prompt (Vero 4K)


#1

Is it possible to initiate a Kodi Video library scan from the command prompt?


#2

Use kodi-send and the respective command
https://kodi.wiki/view/List_of_built-in_functions#Library_built-in.27s


#3

Thanks a lot - could you give an example as well?


#4

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)"


#5

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.


#6

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


#7

Personally i use texturecache.py has many more features like purging old artwork, updating and cleaning libraries, backing up watched statuses…


#8

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.


#9

Settings->Media->Library Video Clean library


#10

Have you tried this from SSH:
kodi-send --action=“CleanLibrary(video)”