2004-01-05, 06:35 PM
The way that ananova.com deals with the short programmes is to concatenate them to the previous programme and identify it as "followed by" - e.g.
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<programme start="20040105183000 GMT" stop="20040105190000 GMT" channel="15" x-broadcast="26643841" x-programme="108707909">
<title lang="en">South Today</title>
<category lang="en" x-code="2000">General News/Current Affairs</category>
<category lang="en" x-code="2###">News/Current Affairs</category>
<video>
<present>yes</present>
 <aspect>16:9</aspect>
</video>
<subtitles type="teletext"></subtitles>
</programme>
[/QUOTE]
and
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<programme start="20040105185945 GMT" stop="20040105190000 GMT" channel="42" x-broadcast="26638722" x-programme="108706222">
<title lang="en">Weather</title>
<category lang="en" x-code="2100">News/Weather Report</category>
<category lang="en" x-code="2###">News/Current Affairs</category>
<subtitles type="teletext"></subtitles>
</programme>
[/QUOTE]
Could be show as
South Today
followed by Weather
- in the ananova xmltv feed it's easy to see which should be "followed by" as the second programme is "embedded" in the first programme ends (i.e. they end at the same time - in this case both finish at 7pm.)
This adds a greater level of complexity in reading the xmltv file, but would "read" more like the TV schedules.
Cheers,
Andy
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<programme start="20040105183000 GMT" stop="20040105190000 GMT" channel="15" x-broadcast="26643841" x-programme="108707909">
<title lang="en">South Today</title>
<category lang="en" x-code="2000">General News/Current Affairs</category>
<category lang="en" x-code="2###">News/Current Affairs</category>
<video>
<present>yes</present>
 <aspect>16:9</aspect>
</video>
<subtitles type="teletext"></subtitles>
</programme>
[/QUOTE]
and
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<programme start="20040105185945 GMT" stop="20040105190000 GMT" channel="42" x-broadcast="26638722" x-programme="108706222">
<title lang="en">Weather</title>
<category lang="en" x-code="2100">News/Weather Report</category>
<category lang="en" x-code="2###">News/Current Affairs</category>
<subtitles type="teletext"></subtitles>
</programme>
[/QUOTE]
Could be show as
South Today
followed by Weather
- in the ananova xmltv feed it's easy to see which should be "followed by" as the second programme is "embedded" in the first programme ends (i.e. they end at the same time - in this case both finish at 7pm.)
This adds a greater level of complexity in reading the xmltv file, but would "read" more like the TV schedules.
Cheers,
Andy