[mythtvnz] tv_grab_nz-py
Hadley Rich
mythtvnz@lists.linuxnut.co.nz
Sun, 8 Jul 2007 10:16:59 +1200
On Sat, 07 Jul 2007 16:17:59 Nick Rout wrote:
> I am embarrassed to say that the error was a stray file in my ~/tmp
> directory which was confusing python.
Cool, least that's sorted :)
> The --config script seems to ask whether I watch Prime 3 times.
Yeah, that will be the three Prime channels that are in the Sky EPG. I haven't
really thought about that too much yet (although I probably should have).
> Once run, there seems to be a newline missing in the first line:
>
> <tv date="20070707074154 +1200" generator-info-name="epgsnoop/0.15.0"
> generator-info-url="http://nice.net.nz/epgsnoop"><channel
> id="tv2.sky.co.nz"> <-- all one line
>
> - which is probably a point of style only :-)
True, that's just how elementtree outputted it I think. Oh well.
By the way, if you have the external package version of elementtree it will be
a little slow at parsing on a slower box. In Python 2.5 the C version of the
package is used and it's faster.
hads
--
http://nicegear.co.nz
New Zealand's VoIP Supplier