Dnpwwo wrote:@Brutus, smart playlists seem to be the only thing available through the API (have a look if you like
http://kodi.wiki/view/JSON-RPC_API/v6 to see if I missed something). My initial intention was to support m3u and the like but couldn't find a practical way to do it. As always, there is limited documentation.
Fron what I read I couldn't see any reason why streams wouldn't work though. I assume you have a working .strm file that has the URL in it, you should be able to create a 'rule' that picks it up in a Smart Playlist.
Thank you for your reply.
I had made the .m3u file and included a streaming URL. But I can't import it with any logical rule in the Smart playlist. With the .strm file I have the same problem. So the way I see it, it isn't possible to add a stream in a smart playlist.
The problem I think is that the stream won't be added in the library. When adding it manual (right click and "add manual to library") I can't find it with the search option. So the smart playlist will also not find it.
Looking at the JSON-RPC API isn't it possible to use the "Player.Open" option? (
http://kodi.wiki/view/JSON-RPC_API/v6#Player.Open).
5.9.6 Player.Open
Start playback of either the playlist with the given ID, a slideshow with the pictures from the given directory or a single file or an item from the database.
"Single file" could be a simple playlist or stream file?
EDIT: I have tested this my self

I was pretty excited to get it working. Never done this before. Here is a working link to start a .m3u playlist:
Code: Select all
http://192.168.1.5/jsonrpc?request={"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"file":"special://profile/playlists/music/Radio538Stream.m3u"}}}
The Favorite option in KODI can't we use that? Its easy to make Favorites. Its mentioned in the Namespace but thats it: (
http://kodi.wiki/view/JSON-RPC_API/v6#Namespaces)
Thnx again for thinking with me.
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H