Good afternoon
I have an script to update the trailers to use the Invidious plugin instead of Youtube.
I want to run it before Kodi starts (or after it stops).
The script runs a Kodi Database update, so it must be stopped.
I have tried it with a file “.config/autostart.sh” with something:
/usr/bin/systemctl stop kodi
/usr/bin/sqlite3 /storage/.kodi/userdata/Database/MyVideos119.db <<EOF
UPDATE movie SET c19 = REPLACE(c19,‘youtube/?action=play_video&videoid’,‘invidious/?action=video&videoId’);
EOF
/usr/bin/systemctl restart kodi
which resulted in Coreelec not starting anymore, staying on the boot screen.
How could I invoke an automatic script before kodi starts?