Listen Port for xmltv.sock
I wrote a small Kodi plugin that grabbs and processed epg data from different sites.
A feature of the addon is to write the epg directly into the xmltv.sock, it would be great if tvheadend also had a listen port for the socket, then it would be possible to update the socket across devices.
Also useful for Docker or similar.
Updated by Hanspeter Müller 11 months ago
you can do this easily with socat (with ssl):
socat -s -d openssl-listen:9983,cert=yourhost.pem,cafile=ca.pem,verify=0,fork UNIX-CONNECT:/home/hts/.hts/tvheadend/epggrab/xmltv.sock &
or without ssl:
socat -s -d TCP4-LISTEN:9983,fork UNIX-CONNECT:/home/hts/.hts/tvheadend/epggrab/xmltv.sock &
on the host that has the guide-data, run
cat guide.xml|socat - openssl-connect:yourtvheadendhost:9983,cafile=/etc/ssl/certs/chain.crt,verify=0
Would be nice if it where integrated, but the better way would be an endpoint in the http-api (so you could POST the guide-data to it with curl; less open ports)...