[mythtvnz] Simple Script For Pulling EPG into MythTV

Curtis Walker sultanoswing at gmail.com
Wed Sep 21 13:49:34 BST 2011


Yep - that script turned out ugly! Thanks for the tip on HTML (told you 
I was a noob at this).

The problem I have with the tv_grab_nz-py script is that although it 
runs OK from the command line, and outputs the file "tv_grab_nz-py.conf" 
into the .xmltv directory, when I run it in mythtv-setup under "video 
sources>configure" it looks like it runs, but ALT-TAB to the command 
line it's hanging and not doing anything. Result is, no EPG stuff loaded.

What fix did you use for 2.7? Is there an updated script available for 
download? (not that it's hard to self-patch, mind).

As far as other sources goes, no I haven't written it more widely - it 
was a personal script to save a manual daily chore. The wider one's 
audience becomes, the more complex the script would get (not to mention 
beyond my ken to write). That said, I hope my simple solution will help 
those in my surely-not-uncommon situation of running mythTV and only 
needing FreeviewHD EPG data.


On 22/09/11 00:37, Curtis Walker wrote:
> Netequette rule number 1
> Never post to a mailing list/reflector using HTML - yuck...
>
> Meanwhile, more useful than saying that something doesn't work would be
> top detail the error message(s). I have found a problem 
> with tv_grab_nz-py
> in python 2.7 for example and its likely the same fix applies with 
> version
> 3.
>
> I guess you only have one source from the command line you quote above -
> have you looked at making the script work correctly for those people with
> several sources (analog, DVB-T, DVB-S, STB etc). Just a thought!
>
> -- 
> Robin Gilks Thanks for the tip on HTML (told you I was a noob at this) 
> :). Yep - that script turned out ugly!
>
> On 21/09/11 22:08, Curtis Walker wrote:
>> Hi All,
>>
>> I'm a noob, but here is a very simple shell script for pulling NZ EPG 
>> data (8 days' worth) into your MythTV backend.
>>
>> 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).
>>
>> 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!
>>
>> *#! /bin/bash
>> wget http://nzepg.org/freeview.xml.gz
>> gunzip freeview.xml.gz
>> mythfilldatabase --file 1 freeview.xml --update
>> rm freeview.xml
>> exit
>>
>> * 
>



More information about the mythtvnz mailing list