Kodi Community Forum

Full Version: Error on execution : executeJSONRPC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I made a script to change the genres directly in kodi (database) and also manage the films in directories
I can do everything except change the location of the film "c22 in the database"
my command to change the location of the movie:

  command = ('{"jsonrpc": "2.0", "method": "VideoLibrary.SetMovieDetails", "id": 1, "params": {"file": "% s", "moviesid":% s} } '% (filecible, self.idfilm))
then:
    data = xbmc.executeJSONRPC (command)
send me an error

Is that in the kodi source changing the location of the movie (database: c22) is allowed?
thank you
best regards ray.lp
(2021-02-14, 16:56)ray.lp Wrote: [ -> ]Hello,
I made a script to change the genres directly in kodi (database) and also manage the films in directories
I can do everything except change the location of the film "c22 in the database"
my command to change the location of the movie:

  command = ('{"jsonrpc": "2.0", "method": "VideoLibrary.SetMovieDetails", "id": 1, "params": {"file": "% s", "moviesid":% s} } '% (filecible, self.idfilm))
then:
    data = xbmc.executeJSONRPC (command)
send me an error

Is that in the kodi source changing the location of the movie (database: c22) is allowed?
thank you
best regards ray.lp

edit : what is the command for scan to library on a movie ?