I have finally been able to control Kodi from remote on my home LAN using Python scripts on WSL2, and when I do a VideoLibrary.Scan, I do get the expected "OK" back via JSON, but is there a way to poll Kodi or look at processes to see when that scan is completed?
I am using this method, and VideoLibrary.Clean from a VB.NET Windows Forms application to interact with the Kodi database (ready only) to search for specific media assets, etc. When I make changes to my NAS resources as a result of this app, I want to periodically (on-demand) clean, then update Kodi's database, then pull it locally to update what my app sees. But I do not want to pull it's user database until the scan is complete. I am pulling the database locally because it is faster for my app to access and I wanted that barrier in case I somehow change the database, and I do not want to corrupt it on my LibreElec install of Kodi. I would rather let Kodi make the database updates based on what it sees on my multiple NAS resources.
I apologize if this has been asked before. I did extensive google searches and a few forums and did not get any hits.
Thanks for your time!