2022-11-19, 18:30
Is there a way that I can tell when VideoLibrary.RefreshTVShow has finished?
I am using this command:
And it returns OK immediately, which isn't a surprise.
But then I have no idea when it's finished, and I don't really want to fire off multiple refreshes without knowing when they're done.
As a note, during the time when the show is refreshing, Library.IsScanningVideo:
always returns "false". Apparently this only returns "true" when a full library scan is running. Which also isn't a surprise after thinking about it - but I was hoping that it would return "true" during a refresh.
I am using this command:
Code:
curl.exe -s -X POST -d '{"jsonrpc": "2.0", "method": "VideoLibrary.RefreshTVShow", "params": { "tvshowid": 797, "refreshepisodes": true }, "id": "1"}' -H "content-type:application/json" http://USERNAME:PASSWORD@HOSTNAME:8080/jsonrpc
But then I have no idea when it's finished, and I don't really want to fire off multiple refreshes without knowing when they're done.
As a note, during the time when the show is refreshing, Library.IsScanningVideo:
Code:
curl -s -X POST -d '{ "jsonrpc": "2.0", "method": "XBMC.GetInfoBooleans", "params": {"booleans": ["Library.IsScanningVideo"]}, "id": 1 }' -H 'content-type: application/json' http://USERNAME:PASSWORD@HOSTNAME:8080/jsonrpc