Closed ilkarataev closed 1 year ago
I found way to solve this problem , we can use jsonrpc call.
<?xml version="1.0" ?>
<cron>
<?xml version="1.0" ?>
<cron>
<job id="0" name="1-test" command_type="json" expression="30 15 * * *" command='[{"jsonrpc":"2.0","method":"Playlist.Clear","params":[0],"id":11},{"jsonrpc":"2.0","method":"Playlist.Insert","params":[0,0,{"directory":"/storage/emulated/0/music/1-test/"}],"id":10},{"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"position":0,"playlistid":0},"options":{}},"id":16011}]' show_notification="false" addon="service.cronxbmc" last_run="1679835180.239084" run_if_skipped="false"/>
<job id="1" name="2-test" command_type="json" expression="32 15 * * *" command='[{"jsonrpc":"2.0","method":"Playlist.Clear","params":[0],"id":11},{"jsonrpc":"2.0","method":"Playlist.Insert","params":[0,0,{"directory":"/storage/emulated/0/music/2-test/"}],"id":10},{"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"position":0,"playlistid":0},"options":{}},"id":16011}]' show_notification="false" addon="service.cronxbmc" last_run="1679835180.239084" run_if_skipped="false"/>
</cron>
Hi, first thank you for your work on this project. I tried to run on new l=kodi nexus 20.1 on android system. And have error in logs
my cron.xml file.
I think it maybe kodi problem because cron try to run command. I tried add playlist_type_int=0 like we see in doc it's by default. Maybe you can give me advice. Thank you for your work one more time.