Alistair Grant
2015-01-08 15:36:22 UTC
Hi,
I'm attempting to run tv_grab_huro through the tests on
http://wiki.xmltv.org/index.php/XmltvValidation however it is
currently failing the third test, testing the difference of two sorted
files.
The two files appear to have the same content, however because tv_sort
doesn't sort categories within programmes, the diff command produces
output. For example:
t_1.xml:
<programme start="20150106055000 +0100" stop="20150106090000 +0100"
channel="001.port.hu">
<title lang="hu">Ma Reggel</title>
<desc lang="hu">Ma Reggel Közéleti mûsor Benne: Híradó,
sporthírek, idõjárás-jelentés Feliratozva a Teletext 111.
oldalán.</desc>
<category lang="en">Sports</category>
<category lang="hu">Sport</category>
<category lang="en">News</category>
<category lang="hu">Hírek</category>
</programme>
t_1.sorted.xml:
<programme start="20150106055000 +0100" stop="20150106090000 +0100"
channel="001.port.hu">
<title lang="hu">Ma Reggel</title>
<desc lang="hu">Ma Reggel Közéleti mûsor Benne: Híradó,
sporthírek, idõjárás-jelentés Feliratozva a Teletext 111.
oldalán.</desc>
<category lang="en">Sports</category>
<category lang="hu">Sport</category>
<category lang="en">News</category>
<category lang="hu">Hírek</category>
</programme>
t_2_3.xml:
<programme start="20150106055000 +0100" stop="20150106090000 +0100"
channel="001.port.hu">
<title lang="hu">Ma Reggel</title>
<desc lang="hu">Ma Reggel Közéleti mûsor Benne: Híradó,
sporthírek, idõjárás-jelentés Feliratozva a Teletext 111.
oldalán.</desc>
<category lang="en">News</category>
<category lang="hu">Hírek</category>
<category lang="en">Sports</category>
<category lang="hu">Sport</category>
</programme>
t_2_3.sorted.xml:
<programme start="20150106055000 +0100" stop="20150106090000 +0100"
channel="001.port.hu">
<title lang="hu">Ma Reggel</title>
<desc lang="hu">Ma Reggel Közéleti mûsor Benne: Híradó,
sporthírek, idõjárás-jelentés Feliratozva a Teletext 111.
oldalán.</desc>
<category lang="en">News</category>
<category lang="hu">Hírek</category>
<category lang="en">Sports</category>
<category lang="hu">Sport</category>
</programme>
As can be seen above, the two files have the same programme entry
contents, but the categories are in a different order, which remains
after sorting.
I couldn't find any reference to this problem searching with google.
Is this a new bug, am I misinterpreting the files, or...???
Thanks,
Alistair
I'm attempting to run tv_grab_huro through the tests on
http://wiki.xmltv.org/index.php/XmltvValidation however it is
currently failing the third test, testing the difference of two sorted
files.
The two files appear to have the same content, however because tv_sort
doesn't sort categories within programmes, the diff command produces
output. For example:
t_1.xml:
<programme start="20150106055000 +0100" stop="20150106090000 +0100"
channel="001.port.hu">
<title lang="hu">Ma Reggel</title>
<desc lang="hu">Ma Reggel Közéleti mûsor Benne: Híradó,
sporthírek, idõjárás-jelentés Feliratozva a Teletext 111.
oldalán.</desc>
<category lang="en">Sports</category>
<category lang="hu">Sport</category>
<category lang="en">News</category>
<category lang="hu">Hírek</category>
</programme>
t_1.sorted.xml:
<programme start="20150106055000 +0100" stop="20150106090000 +0100"
channel="001.port.hu">
<title lang="hu">Ma Reggel</title>
<desc lang="hu">Ma Reggel Közéleti mûsor Benne: Híradó,
sporthírek, idõjárás-jelentés Feliratozva a Teletext 111.
oldalán.</desc>
<category lang="en">Sports</category>
<category lang="hu">Sport</category>
<category lang="en">News</category>
<category lang="hu">Hírek</category>
</programme>
t_2_3.xml:
<programme start="20150106055000 +0100" stop="20150106090000 +0100"
channel="001.port.hu">
<title lang="hu">Ma Reggel</title>
<desc lang="hu">Ma Reggel Közéleti mûsor Benne: Híradó,
sporthírek, idõjárás-jelentés Feliratozva a Teletext 111.
oldalán.</desc>
<category lang="en">News</category>
<category lang="hu">Hírek</category>
<category lang="en">Sports</category>
<category lang="hu">Sport</category>
</programme>
t_2_3.sorted.xml:
<programme start="20150106055000 +0100" stop="20150106090000 +0100"
channel="001.port.hu">
<title lang="hu">Ma Reggel</title>
<desc lang="hu">Ma Reggel Közéleti mûsor Benne: Híradó,
sporthírek, idõjárás-jelentés Feliratozva a Teletext 111.
oldalán.</desc>
<category lang="en">News</category>
<category lang="hu">Hírek</category>
<category lang="en">Sports</category>
<category lang="hu">Sport</category>
</programme>
As can be seen above, the two files have the same programme entry
contents, but the categories are in a different order, which remains
after sorting.
I couldn't find any reference to this problem searching with google.
Is this a new bug, am I misinterpreting the files, or...???
Thanks,
Alistair