Grabber advanced options
Added by Pluto P about 12 years ago
Hi, the italian grabber has many advanced option to get detailed data.
If i run the grabber like this:
tv_grab_it --slow --cache-slow
it gets programs description and many other detailed infos
is where a way to enable that?
this is the grabber help
tv@mediaserver:~$ tv_grab_it -h
/usr/local/bin/tv_grab_it: get Italian television listings in XMLTV format
To configure: /usr/local/bin/tv_grab_it --configure [--config-file FILE]
To grab listings: /usr/local/bin/tv_grab_it [--config-file FILE] [--output FILE] [--days N]
[--offset N] [--quiet] [--slow] [--verbose] [--backend]
[--errors-in-xml] [--cache-slow] [--mythweb-categories]
To list available channels: /usr/local/bin/tv_grab_it [--output FILE] [--quiet] --list-channels
To show capabilities: /usr/local/bin/tv_grab_it --capabilities
To show version: /usr/local/bin/tv_grab_it --version
thank you for the grat job you are doing with TVHeadend....
i spent last 6 years using mythtv (and sometime vdr); i moved recently to tvheadend and i found it really great....with an embarrassing simplicity fully working!!!
i need to realize better how series recordings works (mythtv is really great on that) but this software is really good.
thank you!!!!
Replies (4)
RE: Grabber advanced options - Added by Adam Sutton about 12 years ago
I did add the ability to add command line options when calling XMLTV scripts from within tvheadend, but removed it for reasons of simplicity.
Instead what I have done is create a UNIX domain socket interface (needs enabling from EPG Grabe configuration) into which you can send any XMLTV data. This simplified things greatly from a TVH point of view and meant I didn't need to second guess all the possible use cases (script chaining, command line options, cron timing, etc...)
To use this interface enable it in the UI (it should tell you the path to the socket file) and then input your data as follows:
tv_grab_blah [OPTIONS] | netcat -U SOCK_PATH
Note: that some versions of netcat have varying options and it might be -u (lowercase) not -U (uppercase).
You could put this in a cronjob to make it automatically repeat as required.
Alternatively you could just create a simple wrapper script to do all the work, as long as the script begins tv_grab_ is in the PATH and responds to --description and --capabilities I think it should work.
Adam
RE: Grabber advanced options - Added by Pluto P about 12 years ago
Ok, thank you for your response.
i will try with netcat, it seems a good way to generalize that.
I thought to make a wrapper or use the tv_grab_file script too, but these seem to be tricks to do that
Bye!
RE: Grabber advanced options - Added by Pluto P about 12 years ago
excellent.
it works like a charm!!!
Bye!
RE: Grabber advanced options - Added by Gary McLaren almost 12 years ago
I am having problems with above instructions when running on a QNAP NAS 459 Pro.
Firstly the QNAP netcat doesn't support the UNIX domain socket. So with some research I found socat which is more advanced but more complicated.
but when I use the syntax as follows the process hangs when interacting with the xmltv.sock
socat EXEC:"tv_grab_au_reg [OPTIONS]" UNIX-CLIENT:xmltv.sock
have no problems with
socat EXEC:"tv_grab_au_reg [OPTIONS]" STDOUT
which displays all the xml data to the screen.
Any help appreciated as I am a novice at this sort of stuff