(The below is assuming you’ve obtained a freepg.tv link)
Okay, so once you have an XMLTV epg .xml link file, you’ll want to get it into TVH. Do do so, you’ll need to set up a cron to download it on a regular basis. SSH into your CE box, then:
crontab -e
then:
00 3 * * * wget -O '/storage/downloads/au_epg.gz' 'http://Full_Link_Given_By_Freepg' && gunzip -c '/storage/downloads/au_epg.gz' > '/storage/.kodi/userdata/au_epg.xml'
It’s set to download once a day at 3am (the second number). If your machine isn’t on 24/7, pick a time (24 hr time 00-23) that it is reliably or replace “00 3 * * *” to @reboot and it’ll run every time the box is turned on.
Save and quit. Then run this once to get your initial XMLTV file:
wget -O '/storage/downloads/au_epg.gz' 'http://Full_Link_Given_By_Freepg' && gunzip -c '/storage/downloads/au_epg.gz' > '/storage/.kodi/userdata/au_epg.xml'
From there, you need to get TVH to see that file. If you go into the TVH server Addon settings, under the XMLTV setting, set “XMLTV Service Type” to file and enter “XMLTV File Location” to:
/storage/.kodi/userdata/au_epg.xml
From within the TVHeadend webui:
Under Configuration->Channel / EPG->EPG Grabber, click “Re-run Internal EPG Grabbers”.
Now, if your services are set to “automatically link EPG data to the channel…”, you should have most or all the channels with EPG data. But sometimes errors happen and things don’t get linked, or get linked to the wrong channel. Once the run is completed (you’ll see it happen in the log pane), you can manually link the EPG channels to the HDHR channels in Configuration->Channel / EPG->EPG Grabber. Remember to save changes.
Note: Getting the EPG loaded and recognized may require a reboot of the box or a restart of the TVH server—disable (don’t uninstall) and then re-enable the Addon.