2016-06-14, 06:34
Hi All,
I have script on my server that once its sorted a new movie for example into the correct directory it fires off a kodi json rpc call to update library like below:
curl -v -H "Accept: application/json" -H "Content-type: application/json" -d '{"id":5,"jsonrpc":"2.0","method":"VideoLibrary.Scan","params":{"directory":"smb://<path_to_new_movie_dir>/"}}' http://username:password@kodi_url:80/jsonrpc
The problem is I now have a second kids profile with its own separate mysql library DB and seperate samba shares. When a kids movie is sorted I would like to do the above call specifically for the Kids profile library and for the rest do a call to update the Master profiles library. Is there a way to specific in the json rpc call which profiles library to update?
Thanks
I have script on my server that once its sorted a new movie for example into the correct directory it fires off a kodi json rpc call to update library like below:
curl -v -H "Accept: application/json" -H "Content-type: application/json" -d '{"id":5,"jsonrpc":"2.0","method":"VideoLibrary.Scan","params":{"directory":"smb://<path_to_new_movie_dir>/"}}' http://username:password@kodi_url:80/jsonrpc
The problem is I now have a second kids profile with its own separate mysql library DB and seperate samba shares. When a kids movie is sorted I would like to do the above call specifically for the Kids profile library and for the rest do a call to update the Master profiles library. Is there a way to specific in the json rpc call which profiles library to update?
Thanks