Kodi 18 - ExecuteAddon notification on finished?

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
sam_1421 Offline
Posts: 66
Joined: Apr 2012
Reputation: 2
Post: #1
I wrote a simple script to scan the library, clean library, switch profile, scan library, clean library using WebSockets. It works great, but I would like to add a step after cleaning - I want to perform a Trakt sync. I can use something like this :
curl -v -H "Accept: application/json" -H "Content-type: application/json" -u user:password -d '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.trakt","params":{"action":"sync","silent":"True"}},"id":1}'

However, I'm not sure how I can know when it's done (in order to switch profile and execute my upcoming commands)... I could wait for like 3-5 minutes but that's more like a hack than a proper implementation. Any ideas?
(This post was last modified: 2017-05-22 03:53 by sam_1421.)
find quote