[mythtvnz] epgsnoop problem
Hadley Rich
hads at nice.net.nz
Thu May 21 23:42:09 BST 2009
On Thu, 2009-05-21 at 11:07 +1200, Robin Gilks wrote:
> A long time ago I reported a problem with the processing of the xml files
> out of epgsnoop by the xmltv utility tv_cat as the sky and freeview
> listings are merged.
>
> The error message is...
> /tmp/listings-freeview-11696.xml: empty string for with-lang value at
> /usr/lib/perl5/vendor_perl/5.8.8/XMLTV.pm line 1706.
>
> I thought I'd actually look into it a bit more today and it is due to an
> empty <desc> field in the freeview listings. 282 instances in the log file
> and 282 <desc></desc> lines in the xml file!!
>
> I'm using the BZR version of epgsnoop and this is written from
> outputters.py line 121 and it looks OK but somehow an empty field is
> getting out! Can anyone who knows python better than me give me a clue for
> a fix?
That's odd. I use tv_cat to join the files here and don't have an issue.
Line 120 in outputters.py is;
if 'description' in program and program['description']:
which should take care of any empty descriptions. The latest revision
should be 45, is that what you're running?
hads
--
http://nicegear.co.nz
New Zealands Open Source Hardware Supplier
More information about the mythtvnz
mailing list