Skip to content

Instantly share code, notes, and snippets.

@jangeador
Created June 7, 2016 02:05
Show Gist options
  • Save jangeador/ba6f44a3b8f304ffe597d5c6742b5753 to your computer and use it in GitHub Desktop.
Save jangeador/ba6f44a3b8f304ffe597d5c6742b5753 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