2010-04-23, 11:04
I currently have a crontab job which performs these three actions (via xbmc-send) every night:
UpdateLibrary(video)
CleanLibrary(video)
ExportLibrary(video,true,true,true,true)
The problem is that if I send e.g. CleanLibrary before the UpdateLibrary action is complete, it will be ignored.
Right now I have a long sleep in between each command in the hope that the previous one will complete, but I'm looking for a more elegant solution.
So, is there any way to wait for the previous action to complete or to poll whether any action is in progress?
Regards,
David
UpdateLibrary(video)
CleanLibrary(video)
ExportLibrary(video,true,true,true,true)
The problem is that if I send e.g. CleanLibrary before the UpdateLibrary action is complete, it will be ignored.
Right now I have a long sleep in between each command in the hope that the previous one will complete, but I'm looking for a more elegant solution.
So, is there any way to wait for the previous action to complete or to poll whether any action is in progress?
Regards,
David