2024-02-27, 22:05
Kodi Media Center 20.3 (20.3.0) Git:20.3-Nexus on LibreELEC (official): 11.0.6 (RPi4.arm), running on a Raspberry Pi 4 8gb.
I asked this on the LibreElec forums and it was suggested that I ask it here. The process I started is a result of a jsonrpc call so I hope I picked the right area.
I have finally been able to control Kodi from remote on my home LAN using Python scripts on WSL2 (Debian Ubuntu), 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!
I asked this on the LibreElec forums and it was suggested that I ask it here. The process I started is a result of a jsonrpc call so I hope I picked the right area.
I have finally been able to control Kodi from remote on my home LAN using Python scripts on WSL2 (Debian Ubuntu), 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!