Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

47 posts


Topic # 173267 17-May-2015 16:52
Send private message


I'm running OpenElec (for Kodi), along with TVHeadend as the TV backend, on DBT/T (Freeview).

On the EPG, currently I can only get +2 hours for TVNZ and TV3/Four channels. I have got +7 days for PRIME.

I figure I need to set up a custom EPG grabber / XML but am not sure what is the best / currently working method as alot of the posts on here on the topic are quite old.

That and I am not sure how to add a custom EPG source into TVHeadend.

The below image shows the EPG Grabber settings in TVHeadend at the moment:

Click to see full size

Within "Over the air grabbers" i also have OpenTV: Sky NZ" ticked, but this is DVB/T so don't think that's any help.

I originally also only had 2 hours of PRIME, but since selecting the two External Interface options (XMLTV and PyEPG), PRIME grabbed + 7 days.

Do I need to set up more channels to feed into the XMLTV external inferface?

Any pointers, most appreciated.

And as said, apologies if this has been asked and answered many times; I'm just not sure what is relevant now & will work for Tvheadend/Openelec.


Filter this topic showing only the reply marked as answer Create new topic

47 posts


  Reply # 1306711 17-May-2015 17:58
Send private message


Update on this... based on the pricipal of this:

For a quick test, I've grabbed a current XML file from and placed it in /downloads/freeview.xml

And then within /.kodi/userdata/addon_data/service.multimedia.tvheadend/settings.xml set:

<setting id="XMLTV_LOCATION_FILE" value="/storage/downloads/freeview.xml" />

But no change to the EPG contents. Not sure how to make it trigger a new read of this XML file either.

Also found: -- this seems to be very similar to the above method - but not sure how/where to set this up either.


2090 posts

Uber Geek
+1 received by user: 1173

  Reply # 1306730 17-May-2015 18:57
Send private message

Your problem is that NZ EPG is mostly MHEG5.

If you have a windows machine, use EPGCollector. It was developed here by SJB (? and friends ?).

Location: Dunedin




47 posts


  Reply # 1307759 19-May-2015 13:12
Send private message

Thanks for the reply.

andrewNZ: Your problem is that NZ EPG is mostly MHEG5.

Yes, I understand this is perhaps why it's limited OTA. This is also why I am trying to use the XML feed version, which does contain +7 days for all channels.

If you have a windows machine, use EPGCollector. It was developed here by SJB (? and friends ?).

It's on Linux; however the principal of using the EPGCollector is exactly what I'm doing; using a script to grab the XML from the online source and dumping it into the XMl file which TVHeadend should then read.

The issue I'm having now is there, in that TVHeadend won't read the XML file I've given it.


545 posts

Ultimate Geek
+1 received by user: 292

  Reply # 1307812 19-May-2015 15:00
Send private message

My TVHeadend setup has recently started grabbing full 7-day data for all channels over DVB-T. Wasn't quite sure how or why it started to happen, but it did, and I was able to stop using the xmltv script a few weeks ago. I originally thought it was related to this thread and made a post about it there - then I had second thoughts and decided that maybe it had always been possible, so deleted my post.

I'll post my EPG setup when I get home but I'm pretty sure it's quite similar to yours.

In terms of how to use, from memory you have to do the following:

1. Download the python script
2. Move it to a place TVH will find it (I think it's /usr/bin - there should be a bunch of other xmltv scripts in it)
3. Make it executable with sudo chmod +x
4. Run the script in the terminal (as superuser) and tell it which channels to scrape data for
5. Restart TVH (sudo service tvheadend restart)
6. Select the script in the TVH web interface
7. Map the guide data to each channel

545 posts

Ultimate Geek
+1 received by user: 292

  Reply # 1319372 8-Jun-2015 13:38
Send private message

Did you sort this out? Based on the info in this thread I think the answer is simply for you to tick 'UK Freesat' as an EPG source. Full 7-day data via EIT and no need for any external scripts or XML data sources.

Edit: apparently EIT data is currently only enabled in Auckland, so if you're outside Auckland your mileage may vary...

47 posts


  Reply # 1319487 8-Jun-2015 15:39
Send private message


Yes, did resolve it; full details here:


Filter this topic showing only the reply marked as answer Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

News »

Orcon announces new always-on internet service for Small Business
Posted 18-Apr-2019 10:19

Spark Sport prices for Rugby World Cup 2019 announced
Posted 16-Apr-2019 07:58

2degrees launches new unlimited mobile plan
Posted 15-Apr-2019 09:35

Redgate brings together major industry speakers for SQL in the City Summits
Posted 13-Apr-2019 12:35

Exported honey authenticated on Blockchain
Posted 10-Apr-2019 21:19

HPE and Nutanix partner to deliver hybrid cloud as a service
Posted 10-Apr-2019 21:12

Southern Cross and ASN sign contract for Southern Cross NEXT
Posted 10-Apr-2019 21:09

Data security top New Zealand consumer priority when choosing a bank
Posted 10-Apr-2019 21:07

Samsung announces first 8K screens to hit New Zealand
Posted 10-Apr-2019 21:03

New cyber-protection and insurance product for businesses launched in APAC
Posted 10-Apr-2019 20:59

Kiwis ensure streaming is never interrupted by opting for uncapped broadband plans
Posted 7-Apr-2019 09:05

DHL Express introduces new MyDHL+ online portal to make shipping easier
Posted 7-Apr-2019 08:51

RackWare hybrid cloud platform removes barriers to enterprise cloud adoption
Posted 7-Apr-2019 08:50

Top partner named at MYOB High Achievers Awards
Posted 7-Apr-2019 08:48

Great ideas start in Gisborne with hackathon event back for another round
Posted 7-Apr-2019 08:42

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.