Project

General

Profile

Synology XML

Added by Christian Brauwers about 12 years ago

Hi,
i found this : http://code.google.com/p/tv-grab-file/

and i have an XML File ( http://tvprog.org/tv.xml )

How can i send this Content to the xmltv.sock on my synology?

Thanks


Replies (4)

RE: Synology XML - Added by Adam Sutton about 12 years ago

You can either install the tv_grab_file script on your box and use the "internal" grabber config to select that script (it must be in the PATH). Or you can use netcat to send data into the xmltv.sock (it cannot be done remotely).

The main reason to use the socket interface is if you have to run multiple scripts OR what finer grained control over the timing (from cron).

If you simply want to run the tv_grab_file script periodically and nothing more I'd use the internal config method.

Adam

RE: Synology XML - Added by Christian Brauwers about 12 years ago

Ok can you give me an example for the netcat solution please?

First i have to enable the external xmltv.sock.

And then?

I found something like

wget http://www.myxml.tv | nc -U /usr/local/tvheadend/var/epggrab/xmltv.sock

Is that right?
OTA EIT have to be disabled?

How to check if everything runs well?

Thank you.

RE: Synology XML - Added by Adam Sutton about 12 years ago

Yeah that looks about right, but there are diff variants of netcat, so it could be -u (lowercase) or -U (uppercase) depending on which you have.

There should be some info about this in the built-in help (not on the wiki - that is still out of date).

Adam

RE: Synology XML - Added by Christian Brauwers about 12 years ago

Thanks ... yes its lowercase -u .... but he told me something like forward host lookup failed : unknown host...and then save the xml file local... whats wrong here?

thank you

    (1-4/4)