2023-03-01, 09:35
Is there a way to Export the database (movies and series) to one file using the command line? Maybe without artwork and any other pictures? I could only find the solution using the kodi GUI.
(2023-03-01, 09:35)Friedrich0404 Wrote: using the command line?
(2023-03-01, 09:35)Friedrich0404 Wrote: Is there a way to Export the database (movies and series) to one file using the command line? Maybe without artwork and any other pictures? I could only find the solution using the kodi GUI.
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
(2023-03-01, 14:17)Friedrich0404 Wrote: I found this https://gist.github.com/jangeador/ba6f44...c6742b5753 (this is for separate files but perhaps its customizable):
Code: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
I've activated control over HTTP and the command line is running without error. But there is no file in the folder i'm running the terminal or on any folder in ~/.kodi.
(2023-03-01, 09:35)Friedrich0404 Wrote: Is there a way to Export the database (movies and series) to one file using the command line?
(2023-03-01, 15:08)Klojum Wrote: Perhaps we are overthinking things here regarding exports. Are you merely looking for a command line solution that mimics the Video Library Export option from the Kodi GUI menus?
(2023-03-01, 15:08)Klojum Wrote:(2023-03-01, 09:35)Friedrich0404 Wrote: Is there a way to Export the database (movies and series) to one file using the command line?
Perhaps we are overthinking things here regarding exports. Are you merely looking for a command line solution that mimics the Video Library Export option from the Kodi GUI menus?
(2023-03-01, 16:35)jepsizofye Wrote: Re: the github gist that you found
thats kodi json rpc and you can find the information about it on the wiki - https://kodi.wiki/view/JSON-RPC_API/v12
(2023-03-01, 16:32)Klojum Wrote: It exports metadata into .nfo files using xml tags.Thanks. That is what I thought and I don't see how that aligns to the original ask "Is there a way to Export the database (movies and series) to one file using the command line?" Anyway, since I am missing the ultimate goal here I don't think I am adding any value and will politely bow out of the discussion but keep a curious eye on it to see what the final result is.