exclusing images when playing files from a folder with api
I'm using the API's Player.Open with a directory to play all items from a folder. It works great, except that it stops when it encounters images (e.g., folder.jpg).

I assume it's displaying the image, but I'm running headless so I don't want it to.

Is there a way to exclude the images and/or have it only show for X seconds and then move on?

not according to the documentation for that function - https://kodi.wiki/view/JSON-RPC_API/v10#Player.Open

however as an alternative you could create a smart playlist that is called from that function which does the exclusion for you instead - https://kodi.wiki/view/Smart_playlists

i expect parameters like path contains and file does not contain would be able to include a folder and exclude .jpg
Thanks! I hadn't thought of a playlist approach.

It looks like smart playlists require media to have been scanned into the library, which these folders haven't. But I'll look into writing a quick script to generate an .m3u of the audio files in that folder and then play that.
right on

Logout Mark Read Team Forum Stats Members Help
exclusing images when playing files from a folder with api0
This forum uses Lukasz Tkacz MyBB addons.