Testing if the scraper is busy from API
#1
Question 
Hopefully this is the correct forum.

If I send multiple sequential API requests to scrape new content metadata there is a race condition whereby Kodi will return "OK" to every request but only actually scrape when the scraper is idle. This results in only a random selection of content being scraped.

Obviously I just need to delay sequential scrapes until the scraper is clear but I cannot find it documented anywhere the correct method to do this is.

Can anyone point me in the right direction?
Having problems getting your TV shows recognized?

Try my extra TV show matching REGEX here
Reply
#2
i assume you mean the info scanner, and not the scraper.

use the library.isscanning infobool (or library.isscanningvideo if music scans are irrelevant).
Reply
#3
With the help of IRC I got linked to this:

http://forum.kodi.tv/showthread.php?tid=...pid2064688

Which shows a working example. Thanks all.
Having problems getting your TV shows recognized?

Try my extra TV show matching REGEX here
Reply

Logout Mark Read Team Forum Stats Members Help
Testing if the scraper is busy from API0