Kodi Community Forum

Full Version: Playing root directory files only (slideshow)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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}
Cool, thanks, that works.... I was using "directory" and not "path", with the "path option it works!
i could see how that could be mistaken...