George Kazaroth wrote:
> Your question is how to setup TVHeadend using zap2it.
> 1) Grap the zap2xml.pl file from the URL above and place in ~/xmltv/
> 2) Use attached .zap2xmlrc file. Set email/password and username and place in home folder ~
> 3) create an xmltv_default.xml file by running the command
> ./zap2xml.pl -D -S 3
> rename resulting xmltv_default.xml to xmltv.xml
> 4) Now the key to making it all work... softlink the xmltv folder to where tvheadend is installed. For me it is installed in /home/hts (where the .hts folder is located.) To make the softlink type
> sudo su - hts
> ln -s /home/<user>/xmltv .xmltv
> This should create a .xmltv folder in /home/hts pointing to where your xmltv.xml file is being generated.
> 5) In TVHeadend website, goto Configuration -> Channel / EPG -> EPG Grabber
> 6) I have the settings check "Update Channel Number". Periodically save ... = 0. Cron multiline: I have the following
> 0 5
> 0 8
> 0 12
*
> Which pulls in the xmltv.xml file at 5am, 8am and 12 noon every day
> BEFORE you click save, click on the 3 ^ in the bottom right corner. It brings up the tvheadend console window. Now click Save. If it works, you should see something like
> xmltv: /usr/bin/tv_grab_file: channels tot= 55 new= 0 mod= 0
> xmltv: /usr/bin/tv_grab_file: brands tot= 0 new= 0 mod= 0
> xmltv: /usr/bin/tv_grab_file: seasons tot=22195 new=22195 mod=22195
> xmltv: /usr/bin/tv_grab_file: episodes tot=22975 new= 9363 mod=17387
> xmltv: /usr/bin/tv_grab_file: broadcasts tot=22975 new= 425 mod= 425
> SUCCESS!
> You now have your EPG filled with info which you can link to channels.
>
> Additional info. First, you can use the xmltv.xml to download the icons, but I highly recommend finding good ones on the internet. The icons auto retrieved are fuzzy at best and if they are listed in the xmltv.xml, tvheadend will force their use. Just fill out the Configuration -> Channel / EPG -> Channels (icon column).
> EX: "file:///home/<user>/xmltv/icons/4.1.png"
> Also, my perl script I wrap around the zap2xml.pl will add more info to the description and sub-title, and map the genre to support Kodi/TVHeadend which causes pretty colors based on tv show type all over your guide based using what those apps expect.
>
> Hope this helps.
So, following your direction, after step 6, from the console I see this:
2017-03-11 14:54:11.382 /usr/bin/tvgrab_na_tvmedia: grab /usr/bin/tv_grab_na_tvmedia
2017-03-11 14:54:11.386 spawn: Executing "/usr/bin/tv_grab_na_tvmedia"
2017-03-11 14:54:11.716 spawn: You need to configure the grabber by running it with --configure
2017-03-11 14:54:11.721 /usr/bin/tv_grab_na_tvmedia: no output detected
2017-03-11 14:54:11.721 /usr/bin/tv_grab_na_tvmedia: grab returned no data_