Project

General

Profile

Feature #5911

Listen Port for xmltv.sock

Added by Bastian Kleinschmidt over 4 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
EPG
Target version:
-
Start date:
2020-06-03
Due date:
% Done:

0%

Estimated time:

Description

Hi,
I wrote a small Kodi plugin that grabbs and processed epg data from different sites.

https://github.com/DeBaschdi/service.takealug.epg-grabber

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.

History

#1

Updated by Hanspeter Müller over 4 years ago

Hi,

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)...

Regards,

/hp

Also available in: Atom PDF