via API check if Library update is running
#1
Hi All,

I want to update the library at the end of my movie download script.
It works perfectly already, but i don't want to initiate a second or third update if the first update is still processing.

Is there a way to check if the library update is still running or is the api call to update the library 'foolOo' proof. e.g. it does not matter that you send a new update command while the previous is still running.

Rob.
Reply
#2
Code:
if (scanner->IsScanning())
  scanner->StopScanning();
else
  CGUIWindowVideoBase::OnScan("",info,settings);

it's fool proof but not in the way you want it to be. luckily there is
Code:
if (strTest.Equals("library.isscanning")) ret = LIBRARY_IS_SCANNING;
i'm not sure if you can query info labels using the http api. if that isn't the case you will have to do a .py middleman
Reply
#3
If this is a script, why don't you just create some file before you start the scan and delete it on completion. Then you can just test that files existance before you start any other instances.
Reply
#4
nevermind
Reply

Logout Mark Read Team Forum Stats Members Help
via API check if Library update is running0