Created
June 7, 2016 02:05
-
-
Save jangeador/ba6f44a3b8f304ffe597d5c6742b5753 to your computer and use it in GitHub Desktop.
Kodi remote commands update library and export library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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