From MythTV Official Wiki
Revision as of 22:43, 26 October 2009 by Bkortleven (talk | contribs)

Jump to: navigation, search

Setting up XMLTV for use with MythTV is documented in the MythTV HOWTO 5.2.

The purpose of this page is to cover specific issues that aren't necessarily covered in the official documentation.

Info on XMLTV http://xmltv.org/wiki/

Outside North America

Generally, XMLTV is used by people living outside of North America. North American users should instead see Schedules Direct.

If you live outside the USA and Canada, there are some other sources of guide information.

Important Notes for all XMLTV users

Warning.png Warning: You should not include channels in your xmltv config which are not required. This places an unnecessarily high load on both the source websites and your own system.


Refer to Australian TV Listings for further details.

  1. OzTivo Guide (Free, requires registration)
  2. http://www.icetv.com.au (AU$3 per week subscription)
  3. Australian XMLTV grabbers (ice + tvguide)
  4. Shepherd (Free : Ice,OzTivo hybrid multi source )
  5. http://immir.com/tv_grab_au (Free) (may be inactive/broken now)
  6. http://www.onlinetractorparts.com.au/rohbags/xmltvau/ (not confirmed if working)


  1. https://launchpad.net/belguide
  2. http://users.skynet.be/jxmltv
  3. http://pytvgrab.sourceforge.net/
  4. http://membled.com/work/apps/xmltv/
  5. http://mc2xml.110mb.com/ : this one downloads its information from Microsoft. It is intended for MS Windows media center edition. ATM in Belgium it works better than xmltv but you might want to change channel names since they're in the xml file in pretty non-human parseable names. This script works pretty well:
./mc2xml -c be -g postcode -o xmltv.xml
echo Chan namen veranderen ...
cat replacements | while read line
        sed -e "s/$line/g" -i xmltv.xml
mythfilldatabase --update --refresh-all --file 1 xmltv.xml

replacements contains lines like (for TV Vlaanderen, that is.)


The first time I imported channels, I cut out every channel from the xml file (not so difficult) that I can't receive (-> cleaner guide in mythtv).

You can also get your XML file directly from http://mythportal.be/XML-tv-gids


There are a working grabber, tv_grab_br_net a perl scripts (or any other Linux native solutions) for Brazilian TV programming. This grabber get data from Net [1] cable TV. No open to air TV on this source, just paid tv programme. It is detected by mythtvsetup and you are prompted (on background windows) to make your choice about your city, line-up and channels. It provide both, simple and complete description for programs.

Other functional alternative is to use TVxb, which isn't open source or even Linux, but works well with wine (at least as far as version 1.0085).

TVxb is configurable for different countries via ini-files. Check the following page for Brazilian templates. As of today, there are some for NET (PR), and others for TVA as well.


For information on how to set it up with MythTV, check out TVxb.


The grabber for Croatia tv_grab_hr is using the goNIX service as its backend.

More information is available on http://www.gonix.net/

Czech Republic

The only way to get TV listings in Czech Republic is TVxb, there is no grabber for XMLTV.

Not public XMLTV file for czech and slovak channels (UPC channels included) can be send after request to rfordinal.


In Denmark there is a group maintaining several grabbers. This group has created the following:

Currently seven grabbers are maintained:

  • The original (tv.tv2.dk),
  • An additional written in perl (dr.dk)
  • Five written in Python (tdc.dk, tv-guiden.dk, ahot.dk, jubii.dk, ontv.dk).

The group also maintains the following:

  • A merger written in Python to combine XMLTV information from multiple sources, to obtain the highest possible quality (merge end time of last show from tdc.dk with episode numbers from tv2.dk and long descriptions from tv-guiden.dk etc.).
  • A "combined" grabber, which configures each of the other grabbers and runs them in parallel and then merge the output. That combined grabber does also support the swedish grabber (swedb).

The mailing list is used to inform users when there are updates or problems with the current grabbers.


Finnish XMLTV data can be acquired with tv_grab_fi. The script parses www.telkku.com web site in order to get EPG entries.

Latest version of the tv_grab_fi can be downloaded from:


Due frequent site updates of the www.telkku.com user should always have the latest version of the grabber.
Add latest version of tv_grab_fi somewhere where mythtv can find it for example in debian system to /usr/bin/. Also remember to assure that you don't have any older versions installed.

To use tv_grab_fi you need to first run in ~/.mythtv

tv_grab_fi --configure --config-file dvb.xmltv 

This will ask which channels does the user want to use grabber for.
Once you have generated dvb.xmltv it should contain lines like this 'channel 0 YLE1'. Channels with '#' in front of them will not be added.

Now we need to tell XMLTV ID's to mythtv. In dvb.xmltv take the number after word "channel" and add ".telkku.com" after that and you'll have the ID. For example if the channel has line of 'channel 62 YLE24' the ID is 62.telkku.com.
Start Mythtv setup


Go to: 'channel editor' -> "channel that you want to use grabber for" -> XMLTV ID: xx.telkku.com (Where 'xx' is the number in dvb.xmltv) -> Next -> Ready.

To update program guide do


If that doesn't add EPG entries then do:

mythfilldatabase --refresh-all

Another way to get XMLTV ID's is to do

tv_grab_fi --config-file dvb.xmltv --days 0 --output channels.tmp

In channels.tmp find line that has '<channel id="...>' in it. In place of "..." you will have the XMLTV ID. For example if the line is: "<channel id="2.telkku.com">" then the XMLTV ID is 2.telkku.com.


This web site [2] provides free and very complete XMLTV listings as a downloadable XML file. You will need to run mythfilldatabase with the --file argument to use the downloaded xml.


TV Movie

The TV Movie paper has changed its EPG data publishment in January 2009, breaking the old script.

A script for the new format can be found here. This grabber is very fast (runs in a few seconds) and offers up to 8 days of program data for all free-TV stations, including ratings, comments and actor lists.


You can download the TV program as XMLTV file from xmltv.info. There is also a fast grabber available to automatically fetch the file.


The grabber in the official XMLTV distribution works correctly.


Netherlands (Holland) specific info can be found here: Netherlands

New Zealand

A c# application to scrape sites can be found here, runs fine using mono on linux

  1. http://www.reven.co.nz/


To use the XMLTV Data for Norway, you will have to use:

tv_grab_no --configure --config-file=tv_grab_no.xmltv

It will then ask you what channels you would like. Next copy the file to your .mythtv directory.

Next, you have to get the tags for each channel.. So let's fetch the data and save it to a tmp file.

tv_grab_no --config-file=tv_grab_no.xmltv --list-channels --output=channels.tmp

Open that file and write down each tag for each channel. Look for lines like:

<channel id="nrk1.nrk.no">

As you will see in the file: nrk1.nrk.no is for Nrk1.

So now when you run mythtv-setup --> channel editor, in order to capture Nrk1, you need to set the XMLTV ID to nrk1.nrk.no.

Do this for all the channels. When you are finally finished with doing all that, just run


When its finished, start up mythfrontend.

South Africa

See the South Africa MUG WIKI page for details.


The included parser works (www.elpais.es/parrillatv/index.html). Although it has been found some inconsistencies with the real programation.

One alternative, abeit not been as complete: http://www.miguiatv.com/todos-los-canales.html


  1. http://tv.swedb.se/


  1. XMLTV_CH: Info on available grabbers and icon listings.
  2. xmltv.info offers an XMLTV file for download which includes the TV programm for a number of Swiss channels.

United Kingdom

  1. Uk_xmltv

A brief guide to configuring tv_grab_uk_rt is available at the link above.

Ukraine, Russia, Belarus

  1. tv_grab_ru Converts JTV-formatted archive with about 200 channels to XMLTV. But this application does not show additional info about programmes.
  2. tv_grab_ua Downloads XMLTV-formatted data from sites like teleguide, izbushka or star.poltava.ua. In addition it parses existing data and adds category/rating/credits into output XMLTV file.
  3. teleguide.info XMLTV-formatted zip archive with programmes inside.