Multiple calls to UpdateLibrary from a script.
#1
I am trying to write a script that updates a select part of my video library from a python script. I have got it working but I needed to use a massive hack. I started with

Code:
xbmc.executebuiltin('XBMC.UpdateLibrary(video,"TV show 1")')
xbmc.executebuiltin('XBMC.UpdateLibrary(video,"TV show 2")')

But, it seems to cause a problem because it didn't wait for the first to complete. So, I had to insert time.sleep(5) between each one. This isn't great but it does at least work. Does anyone have any suggestions? The idea is that doing it this way is nice and quick, only checking those shows that could have updated.

Ideas
Reply
#2
only slight improvement is that you can poll the infolabel library.isscanning instead of the sleep. it's not made to maintain a queue.
Reply
#3
That would be a good improvement. I will try that. Cheers.
Reply

Logout Mark Read Team Forum Stats Members Help
Multiple calls to UpdateLibrary from a script.0