kodi:kodi-commands
Table of Contents
Kodi remote/cli commands
Update Music Library
curl -i -X POST -d "{\"jsonrpc\": \"2.0\", \"method\": \"AudioLibrary.Scan\", \"id\": \"mybash\"}" -H "content-type:application/json" http://127.0.0.1:8080/jsonrpc > NUL 2>&1
Update Video Library
curl -i -X POST -d "{\"jsonrpc\": \"2.0\", \"method\": \"VideoLibrary.Scan\", \"id\": \"mybash\"}" -H "content-type:application/json" http://127.0.0.1:8080/jsonrpc > NUL 2>&1
Clean Music Library
curl -i -X POST -d "{\"jsonrpc\": \"2.0\", \"method\": \"AudioLibrary.Clean\", \"id\": \"mybash\"}" -H "content-type:application/json" http://127.0.0.1:8080/jsonrpc > NUL 2>&1
Clean Video Library
curl -i -X POST -d "{\"jsonrpc\": \"2.0\", \"method\": \"VideoLibrary.Clean\", \"id\": \"mybash\"}" -H "content-type:application/json" http://127.0.0.1:8080/jsonrpc > NUL 2>&1
Run Trakt Addon sync
curl -i -X POST -d {\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"Addons.ExecuteAddon\",\"params\":{\"addonid\":\"script.trakt\"}} -H "content-type:application/json" http://127.0.0.1:8080/jsonrpc > NUL 2>&1
Check if Kodi is running remotely
curl -s 127.0.0.1:8080 >NUL && echo Connected. && goto DoStuff || echo Fail. && goto DoNotDoStuff
Texturecache.py
Utility to manage and update the local Kodi texture cache (Texture##.db and Thumbnails folder), view content of the Kodi media library using JSON calls (so works with MySQL too), and also cross reference cache with library to identify space saving opportunities or problems.
source / install: https://github.com/MilhouseVH/texturecache.py
#Prune DB texturecache.py P #Reverse query with option to delete: texturecache.py R #Clean audio/video library texturecache.py [aclean, vclean] #Show missing movies: texturecache.py missing movies "sourcename"
Remote Wakeup/Updatedb/Shutdown
kodi/kodi-commands.txt · Last modified: 2023/05/29 11:55 by 127.0.0.1