logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

tv_sort fails on (apparently) correct input?: msg#00214

Subject: tv_sort fails on (apparently) correct input?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Have been working on an alterantive tv_grab_nz, using the XML feeds
avaiable from TVNZ and Sky. It's huyely WIP (at the moment it's just a
shell script, and an XSLT stylesheet and applier), but the output seems
correct.

tv_sort doesn't like it tho. For example:

 <programme channel="TV2" start="20040128033000">
  <title> Public Enemy No.1</title>
  <category>Movie</category>
  <desc>Drama based on true story about the infamous Ma Baker and her 
   family of bloodthirsty gangsters that terrorised America during the
   1930's. Starring: Eric Roberts, Theresa Russell and Alyssa Milano. 
   Directed by Mark L Lester(1995).</desc>
  <rating system="NZ">
   <value>AO</value>
  </rating>
 </programme>

Results in various warnings 

 result: [
           'Movie'
         ]
 doing subelement
 tag name: desc
 /tmp/xmltv-tv2-8841: element desc not expected here at
 /usr/share/perl5/XMLTV.pm
  line 1936.

There's no reason in XML why the desc tag can't follow the category tag,
but tv_sort refuses to accept this. This makes it very hackish to write a
simple translator for the data sources, because I appear to have to
maintain some abitrary order of tags.

Is this a known problem with tv_sort (in otherwords, I should stop using
it and find some other way to merge the various per-channel files?) or do
I need to bother with merging them at all (and instead just concat them
together, and build a new <tv> tag)?

Merging in some way is critical, as there are two sources and neither has
a complete set of channels (TVNZ's sources only have One, TV2, TV3, C4,
and Prime with one URL for each channel, and Sky is lacking One and TV2,
but has the rest of the Sky Digital/TelstraClear Cable channels and is
all as one file).

Thanks :)

- -- 
David Zanetti           |  (__)             
#include <geek/unix.h>  |  ( oo    Mooooooo 
http://hairy.geek.nz/   |  /(_O ./         
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Made with pgp4pine 1.75-6

iD8DBQFAFwfxT21+qRy4P+QRAm6JAJ9F+kqSu6zG/bRLlSdnXC0XB8zR+wCgxva5
IzeNaUWl/JKMOY0k4UIqtn8=
=f1Ve
-----END PGP SIGNATURE-----




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn


<Prev in Thread] Current Thread [Next in Thread>