North American listings
In order to use XMLTV for North America, you will need to create a Zap2It Data Direct account (be sure to read the license agreement). Recent versions of XMLTV no longer include the older tv_grab_na script, requiring you to instead use the tv_grab_na_dd script (which connects to Zap2It Data Direct).
Once you have your Data Direct account, you will need to create a "channel lineup" within it (via the Zap2It web interface). This lineup describes the channels which will be included in your XMLTV downloads. They are normally defined by specifying your zip/postal code and then choosing your service provider (e.g. a cable company).
Because the provider of North American listings has recently stopped providing stop time data, an extra step is required to guess the stop times if you are a user of the tv_grab_na tool. The simplest way to fix it is to re-process the guide with tv_sort, which will fix the broken listings. (tv_sort is included with xmltv, so you shouldn't need to install anything).
todayis=`date +%Y%m%d` /usr/bin/tv_grab_na --days 1 | tv_sort > $HOME/freevo/xmltv/listings_$todayis.xml rm -f /tmp/TV.xml ln -s $HOME/freevo/xmltv/listings_$todayis.xml /tmp/TV.xml
(This recipe seems to be outdated now (or does Data Direct suffer the same problem)? It's cleaner than the generic download script at the top of the section, anyway, and runs once you add _dd to the command-name. Should also note that this script assumes (AFAICS) you will be running as the freevo user (or at least someone to whose $HOME directory every other user has access)).
Upgrading Notes:
- XMLTV 0.5.32 is out tv_grab_na_dd from version 0.5.31 was a preview release 0.5.32 has different arguments. zap2it has notified XMLTV developers that changes to their site in mid may 2004 will break tv_grab_na. XMLTV will discontinue tv_grab_na in further releases in favor of tv_grab_na_dd.
UPDATE Apr 2/04 from XMLTV website: The latest version is 0.5.31. This fixes some grabber problems with the changeover from winter to summer time in many countries, and adds a new grabber tv_grab_na_dd for US and Canadian listings using the Zap2it Data Direct service. (Sign up using certificate code TGYM-ZKOC-BUTV). It also has some other fixes in various grabbers and tv_check TIP: Upgrade to XMLTV 5.23 or higher as earlier versions will now give you an error similar to "check your postal code/zip code"