Multiple grabbers
Added by Kjetil Nysæter almost 13 years ago
Hi,
I'm using more than 1 provider and would like to use the xmltv grabber for Norway, Italy, and UK.
When I tick for each only the last is used.
Is there an easy way to do this? Allreday tried messing around with cron but did not go very well.
In the end of file /.hts/tvheadend/xmltv/config:
Code:
],
"grab-interval": 12,
"grab-enabled": 1,
"current-grabber": "/usr/bin/tv_grab_no_gfeed"
}
Can I simply add entries to this file?
Replies (4)
RE: Multiple grabbers - Added by Hein Rigolo almost 13 years ago
No, what you need to do is run each grabber your self (from cron) and combine the results into one single valid xmltv formatted file. Then you can use tv_grab_file to load this combined file into tvheadend
We do not support 3 different grabbers at the same time at the moment.
Hein
RE: Multiple grabbers - Added by Kjetil Nysæter almost 13 years ago
Hein,
Thanks for your help!
Could you tell me what command tvheadend uses when launching the grabber?
Ie: /usr/bin/tv_gra_uk_rt -- ????
I've tried running it from cron without any parameters, but will not run.
what I do for now is to use the web interface, choose the UK grabber, save and run. Change to NO grabber, save and run. This works and I get EPG for all channels.
RE: Multiple grabbers - Added by Hein Rigolo almost 13 years ago
well .... each grabber usually has it's own configuration file that is stored in the .xmltv directory. And each grabber has it's own parameters. Just read the documentation of the grabber on how to run it so that a xmltv file is created.
have a look at:
http://wiki.xmltv.org/index.php/XMLTVProject
When you have the 3 files you can combine them into one single xmltv file (take good care of the headers and footers of the 3 separate files)
then you can use the tv_grab_file grabber to load the file into tvheadend. For more information about tv_grab_file have a look here:
http://code.google.com/p/tv-grab-file/
Hein
RE: Multiple grabbers - Added by Kjetil Nysæter almost 13 years ago
Thank you for your help Hein!
I was not aware of the "Combine data from several providers" grabber in the web interface menu.
It seems to working nicely:
Jan 27 09:19:40 xmltv: Grabbing "Combine data from several other grabbers" using command "/usr/bin/tv_grab_combiner"
Jan 27 10:29:34 xmltv: /usr/bin/tv_grab_combiner: Parsing completed. XML contained 409 channels, 135584 events, 10136 new events injected in EPG
Jan 27 10:29:34 xmltv: Grabbing "Combine data from several other grabbers" using command "/usr/bin/tv_grab_combiner"
Jan 27 11:38:44 xmltv: /usr/bin/tv_grab_combiner: Parsing completed. XML contained 409 channels, 135584 events, 9 new events injected in EPG
Kjetil