Solved Playing root directory files only (slideshow)
#1
Hi all,

I'm working with a small python background program and am trying to play a slideshow from a directory. This works great when using the Player.Open with directory parameter, but the player takes all files and subdirectories. This is unfortunately not the required behaviour.
There is a possibility to add "recursive":false but this does not seem to do anything.

Does anyone know how to fix this?

I tried to create a playlist with only the files in the root folder, but unfortunately calling Player.Open with a playlistid that only contains pictures does not work...

I'm using Kodi with the OSMC distribution on a Raspberry Pi B2.

Thanks!
Reply
#2
on windows recursive false works for me:

{"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"path":"C:\\Users\\vehicles\\savage","random":false,"recursive":false}},"id":1}
Reply
#3
Cool, thanks, that works.... I was using "directory" and not "path", with the "path option it works!
Reply
#4
i could see how that could be mistaken...
Reply

Logout Mark Read Team Forum Stats Members Help
Playing root directory files only (slideshow)0