linuxserver / docker-tvheadend

GNU General Public License v3.0
167 stars 89 forks source link

Add socat or netcat to container? #86

Closed hidefog closed 6 years ago

hidefog commented 6 years ago

Hi,

Would it be possible to add socat or netcat to this container? I am attempting to write guide data to xmltv.sock. But, the busybox version of nc does not support writing to sockets. I'd like to be able to do one of the following; cat xmltv.xml | socat - UNIX-CONNECT:/config/epggrab/xmltv.sock or cat xmltv.xml | nc -w 5 -U /config/epggrab/xmltv.sock

Thanks :)

tobbenb commented 6 years ago

You can use the tv_grab_file to import the xmltv file. Go to the settings of tvheadend, then under epg grabber modules, enable tv_grab_file. Place the xml file in /config/data (create the folder if it's not there) for it to be picked up by the grabber.

hidefog commented 6 years ago

Thanks. That works, too. I am mostly trying to optimize the process of pulling and importing guide data. I also found that I can write the data to the xmltv.sock outside of the docker container and it still works.