<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 21/09/11 22:08, Curtis Walker wrote:
<blockquote cite="mid:4E79B786.1010508@gmail.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<font face="Times New Roman, Times, serif">Hi All,<br>
<br>
I'm a noob, but here is a very simple shell script for pulling
NZ EPG data (8 days' worth) into your MythTV backend. <br>
<br>
Apologies to all if this is telling you how to suck eggs, but
the various other methods on geekzone and this mailing list
either seemed a) complicated or b) didn't work for me
(tv_grab_nz-py and Myth on my setup didn't work properly -
possibly something to do with Arch linux running Python 3).<br>
<br>
As you can see, this script will download the freeview.xml.gz
file from nzepg.org, unzip it, install it into Myth's backend,
then clean up. Running it as a cron task daily at 3am, you never
need be without an up-to-date EPG!<br>
<br>
<b>#! /bin/bash<br>
wget <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://nzepg.org/freeview.xml.gz">http://nzepg.org/freeview.xml.gz</a><br>
gunzip freeview.xml.gz<br>
mythfilldatabase --file 1 freeview.xml --update<br>
rm freeview.xml<br>
exit<br>
</b></font><br>
</blockquote>
Thanks Curtis, nice timing for me as my first batch of data had
nearly expired and I wasn't clear why mythtv itself wouldn't update
it for me. I've got another 8 days' worth again, using these lines.<br>
<br>
While I could of course run this via cron, I'm interested to
discover what needs to be done to have mythtv doing it for me, as I
understood that was supposed to happen. I have <br>
<br>
Channel Frequency Table = New Zealand<br>
mythfilldatabase run frequency (days) = 1<br>
mythfilldatabase execution start = 2<br>
mythfilldatabase execution stop = 5<br>
Run mythfilldatabase at time suggested by the grabber = yes<br>
Video source setup listings grabber = New Zealand (py) (xmltv)<br>
<br>
Yet the EPG data was on it's last day. What have I missed?<br>
<br>
Cheers,<br>
Roger<br>
<br>
<br>
</body>
</html>