diff --git a/Scripting.md b/Scripting.md index 3dd34fa..531b9e4 100644 --- a/Scripting.md +++ b/Scripting.md @@ -7,14 +7,14 @@ Python code: RunScript(script.xbmcbackup,mode=backup) ``` -JSON Request: +Backup JSON Request: ``` -{ "jsonrpc": "2.0", "method": "Addons.ExecuteAddon","params":{"addonid":"script.xbmcbackup","params":{"mode":"restore","archive":"000000000000"}}, "id": 1 } +{ "jsonrpc": "2.0", "method": "Addons.ExecuteAddon","params":{"addonid":"script.xbmcbackup","params":{"mode":"backup"}}, "id": 1 } ``` -To script a Restore you need to pass in the archive folder name and the sets within that archive you wish to restore _(version 1.5.0 and greater)_. An example of this would be: +To script a Restore you need to pass in the archive folder name and the sets within that archive you wish to restore _(version 1.5.0 and greater)_. Be aware you will still get some pop-ups if there are advanced settings or Always Ask To Restore UI settings is turned on. -JSON Request: +Restore JSON Request: ``` { "jsonrpc": "2.0", "method": "Addons.ExecuteAddon","params":{"addonid":"script.xbmcbackup","params":{"mode":"restore","archive":"000000000000","sets":"config|database"}}, "id": 1 }