[mythtvnz] EPG NZ howto

Robert Fisher mythtvnz@lists.linuxnut.co.nz
Sun, 27 May 2007 08:39:12 +1200


Robert Fisher wrote:
> From the wiki...
>
> Setting up your EPG and Channels - a simple method which worked for me.
> wget http://ontv.orcon.net.nz/listings.xml (or whatever listings.xml 
> you choose)
> run "mythsetup" and delete all channels (previously manually setup)
> run "mythfilldatabase --file 1 7 listings.xml --do_channel_updates" 
> (This puts in most of the channel info needed.)
> run "mythsetup" again adding to the new channels Channel No., TV 
> Format and Frequency ID
> Also we manually added channels for Sky and C4 which ar not in the 
> ONTV epg.
>
Also from the same Wiki....

Programme Guide
to get the NZ epg data working I gave up trying to get mythfilldatabase 
working the way its meant to. instead I wrote this shell script and 
added it to the crontab once a day..
 
 cd /home/mythtv
 rm -f /home/mythtv/latest.xml
 wget http://hairy.geek.nz/epg/latest.xml.gz
 gzip -d latest.xml.gz
 mythfilldatabase --file 1 -1 latest.xml --update
 
before you run this you need to import the nz channels,
 
 wget http://hairy.geek.nz/epg/latest.xml.gz
 gzip -d latest.xml.gz
 mythfilldatabase --file 1 -1 latest.xml --manual
 and answer all the questions (hint: use 
http://hairy.geek.nz/epg/service-ids.txt to figure out which channel is 
which)