Dynamic m3u8 playlist
#1
Hi,

I'd like to automate the following and feed it to IPTV simple client:

(echo \#EXTM3U;curl server/stations.json|jq -r '...')>playlist.m3u8

So anytime when the simple client wants to load the playlist I'd like to feed it the above file. Is that already possible or what would be the best way to achieve this?
Reply
#2
(2024-10-18, 00:15)Chatty Wrote: what would be the best way to achieve this?

write an addon to do it - https://kodi.wiki/view/Add-on_development
Reply
#3
Could you elaborate a little what kind of AddOn that would be? Are you thinking of a tiny web server AddOn or are there other ways of providing that info to IPTV simple client?
Reply
#4
(2024-10-18, 00:35)Chatty Wrote: Could you elaborate a little what kind of AddOn that would be? Are you thinking of a tiny web server AddOn or are there other ways of providing that info to IPTV simple client?
I don't know if you still need this or not, but I think you would set up a "Remote Path" for the M3U file in the IPTV Simple Client settings, using a local URL (the LAN address of your Kodi device) as the path. Then you'd write up an add-on of type Service, that add-on would start up a tiny HTTP server on that local URL as soon as it'd boot.

It's unrelated but there's some potentially useful raw socket server Python code in here: https://forum.kodi.tv/showthread.php?tid...pid3185806

There's also plugin.video.youtube's scripts that can be a reference:
- https://github.com/anxdpanic/plugin.vide...service.py
- https://github.com/anxdpanic/plugin.vide..._runner.py
- https://github.com/anxdpanic/plugin.vide..._server.py
Reply

Logout Mark Read Team Forum Stats Members Help
Dynamic m3u8 playlist0