XMLTV is a set of utilities to download TV listings and format them in XML.
What does XMLTV actually *do* ?
Any good PVR system needs to know when to record. Systems like VideoPlus in the UK, where numbers encode start and stop times, have made programming easier, but it's much easier to just look at an EPG and click on the programme you want to record.
However, there is no central system for acquiring TV programme data, at present, so that's where XMLTV comes in. XMLTV's job is to take program data off the internet and convert it to a standard format for PVRs like MythTV and FreeVO.
Why XMLTV is so problematic?
The problem with XMLTV is it is grabbing data from places that were not really designed to supply it. It kind of "screen scrapes" - it looks at a web page containing TV information like this and tries to rip the text off it and convert it into an easy to use format. Things can go wrong with this ; if the website decides it's going to reformat its text, then it will cease to work properly or indeed at all.
What about the DVB-T EPG ?
DVB-T, aka Freeview here, has programme guide information embedded in it ; any UK Freeview set top box has an EPG. It seems to be problematic getting this to work in MythTV, as it is currently "in development". When it does work, this will make it much easier as XMLTV can be abandoned, for DVB-T anyway (still needed for analogue, which is sound and video only)
One downside of the DVB-T EPG is that it only goes 7 days into the future, whereas XMLTV does 14 days. This is useful if you want to record when you are on holiday.
If your grabber is not available in the package in community, you have to try and compile xmltv yourself. You can choose between two ways of obtaining a self compiled xmltv installation. You can use ABS and edit the PKGBUILD to make a package or compile it by hand.
Make a package
Refer to the wiki page about the Arch Build System (ABS) on how to use it. Copy the directory xmltv to your build directory. Now you have to check, why your grabber is not available. Extract the source and run Makefile.PL:
makepkg -e cd src/"PKGNAME" perl Makefile.PL
You will be prompted for every grabber. The script will tell you, which grabber is not supported and why. You will have to install additional dependencies then. For the grabber "tv_grab_eu_epgdata" for example you will have to install perl-datetime-format-strptime from AUR. Add these dependencies in the PKGBUILD and run makepkg.
Next we need to configure XMLTV. To do this run
Now, for this grabber, you can individually select whether or not you want each channel. To select every channel (it's quicker to edit the configuration file in a text editor), type:
And it will configure itself to download every single channel it can.
Checking XMLTV actually works
To check it, simply run it.
If all is well, it should churn out reams and reams of channel programme data. It should look like this
<programme start="20070330035500 +0100" stop="20070330042000 +0100" channel="abc1.disney.com"> <title>8 Simple Rules for Dating My Teenage Daughter</title> <sub-title>Rory's Got a Girlfriend</sub-title> <desc lang="en">Sitcom in which a father has his hands full when his wife returns to work and he is left to supervise their teenage daughters. Paul has to face the fact that his son wants to start dating girls, and Kerry envies her sister.</desc> <credits> <actor>John Ritter</actor> <actor>Katey Sagal</actor>
except there will be pages of it.