2011-10-06, 14:21
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
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
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