Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
JASON-RPC
#1
Reply
#2
try:
json:
{"jsonrpc":"2.0","method": "VideoLibrary.RefreshTVShow", "params": { "tvshowid": 183 }, "id": 1}

scott s.
.
Reply
#3
That command executed but, the TV show did not update.

I turned on debugging and captured some SQL statements. 

I see insert into episode (idEpisode, idFile, idShow) values (NULL, 12851, 183)

But if I try to update a show using VideoLibrary.RefreshTVShow", "params": { "tvshowid": 183 }, "id": 1}'
the show doesn't get update.

Kodi does respond back with {"id":1,"jsonrpc":"2.0","result":"OK"}
Reply
#4
{"jsonrpc":"2.0","method": "VideoLibrary.RefreshTVShow", "params": { "tvshowid": 229, "refreshepisodes": true }, "id": 1}

Seems to be working, but for some reason the idShow value changes in MySQL.
Reply
#5
Well, if you are doing it in a script I would think either you get the LibraryId from an info label in the UI or do a VideoLibrary.GetTVShows and find it in there.

scott s.
.
Reply

Logout Mark Read Team Forum Stats Members Help
JASON-RPC0