Mailing List Archive

invalid epg data
hi guys - my machine ran out of epg data today. I use tv_grab_nz-py.
Investigation shows that the XMLTV data downloaded is not quite valid.
mythfillldatabase was reporting malformed XML - premature end-of-file. The
issue is that many of the <programme> entries contain the following:
<audio>
<audio>dolby digital</audio>
</audio>

However this should instead be:
<audio>
<stereo>dolby digital</stereo>
</audio>
'
I've fixed it for now by adding the following line to:
/usr/local/bin/tv_grab_nz-py

res = res.replace('<audio>dolby digital</audio>', '<stereo>dolby
digital</stereo')

Line is added inside the 'getListings' function - right before the 'return
res' line.

Cheers
Re: invalid epg data [ In reply to ]
Thanks for posting, this was a copy and paste error and should be fixed the
next time the script runs today.

On Sun, May 17, 2020 at 9:52 PM Mark van Dijk <mark.van.dijk.74@gmail.com>
wrote:

> hi guys - my machine ran out of epg data today. I use tv_grab_nz-py.
> Investigation shows that the XMLTV data downloaded is not quite valid.
> mythfillldatabase was reporting malformed XML - premature end-of-file. The
> issue is that many of the <programme> entries contain the following:
> <audio>
> <audio>dolby digital</audio>
> </audio>
>
> However this should instead be:
> <audio>
> <stereo>dolby digital</stereo>
> </audio>
> '
> I've fixed it for now by adding the following line to:
> /usr/local/bin/tv_grab_nz-py
>
> res = res.replace('<audio>dolby digital</audio>', '<stereo>dolby
> digital</stereo')
>
> Line is added inside the 'getListings' function - right before the 'return
> res' line.
>
> Cheers
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz@lists.ourshack.com
> https://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>