Skip to content

Instantly share code, notes, and snippets.

@bonelifer
Forked from jangeador/kodi.sh
Created October 2, 2025 20:23
Show Gist options
  • Save bonelifer/1c5b80a72205feef3d656e00dbd50cd8 to your computer and use it in GitHub Desktop.
Save bonelifer/1c5b80a72205feef3d656e00dbd50cd8 to your computer and use it in GitHub Desktop.
Kodi remote commands update library and export library
#!/usr/bin/env bash
# Update library
curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://localhost:8080/jsonrpc
# Clean library
curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Clean", "id": "mybash"}' -H 'content-type: application/json;' http://localhost:8080/jsonrpc
# Export library to separate files:
curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Export", "params": { "options": { "overwrite": false, "actorthumbs": false, "images": true } }, "id": 1 }' -H 'content-type: application/json;' http://localhost:8080/jsonrpc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment