This is an express app that serves as a proxy for IPTV playlists. On every request it fetches the playlist from backend, modifies it and sends it to clients. It also logs changes to the backend playlist between requests.
npm run build
npm start
npm run watch-debug
sudo docker build -t beast/iptv-playlist-proxy .
sudo docker run -p 8000:8080 --volume=/home/beast/iptv-playlist-proxy/log:/usr/src/app/log --volume=/home/beast/iptv-playlist-proxy/output:/usr/src/app/output -d --rm beast/iptv-playlist-proxy
copy autostart.sh
to /storage/.config/
(iptv-playlist-proxy.docker.service doesn't work, it starts after kodi)
- copy
iptv-playlist-proxy.service
to/storage/.config/system.d/
and enable it with systemctl - set
Before=kodi-autostart.service
in that file instead ofBefore=kodi.service
- add
sleep 10
curl localhost:8000
to /storage/.config/autostart.sh