Duplicate subtitle fields

Discussion of Version 3 and developing lua grabbers
Post Reply
Graham
Posts: 2
Joined: Sun Aug 08, 2010 6:14 pm

Duplicate subtitle fields

Post by Graham »

After the recent updates to the RT feed, I get this ...

<programme start="20100809114500 +0100" stop="20100809124000 +0100" channel="UK_RT_134">
<title lang="en">CSI: NY</title>
<sub-title lang="en">6/24, series 3</sub-title>
<sub-title lang="en">Open and Shut</sub-title>

<desc lang="en">While Mac and the team are investigating the death of a hotel employee who has plummeted from a balcony, they are alerted to another case by the sound of gunfire. Rushing to the scene, they find a woman who has shot dead a man for attacking her husband - an incident that brings back painful memories for Stella, who once killed a boyfriend in self-defence.</desc>
<credits>
<director>Joe Ann Fogle</director>
<actor>Det Mac Taylor - Gary Sinise</actor>
<actor>Det Stella Bonasera - Melina Kanakaredes</actor>
<actor>Det Danny Messer - Carmine Giovinazzo</actor>
<actor>Det Lindsay Monroe - Anna Belknap</actor>
<actor>Dr Sheldon Hawkes - Hill Harper</actor>
<actor>Det Don Flack - Eddie Cahill</actor>
<actor>Dr Sid Hammerback - Robert Joy</actor>
<actor>Adam Ross - AJ Buckley</actor>
<actor>Mandi Foster - Jill Latiano</actor>
<actor>Grace Thomason - Dedee Pfeiffer</actor>
</credits>
<category lang="en">Drama</category>
<length units="minutes">55</length>
<previously-shown/>
<subtitles type="teletext">
<language lang="en">English</language>
</subtitles>
</programme>

The magic that I use to post process the xml can't cope with two sub-title fields.

Thanks
alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: Duplicate subtitle fields

Post by alanbirtles »

the parsing code for the radio times data is unable to parse "6/24, series 3" so it adds it as an extra subtitle instead. i will have a look
alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: Duplicate subtitle fields

Post by alanbirtles »

its worse than that they seem to have swapped subtitles and episode numbers around
alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: Duplicate subtitle fields

Post by alanbirtles »

version 3.13 is out now and should fix the problem
Graham
Posts: 2
Joined: Sun Aug 08, 2010 6:14 pm

Re: Duplicate subtitle fields

Post by Graham »

alanbirtles wrote:version 3.13 is out now and should fix the problem
Thanks for your prompt response and for the fix. It all seems to be good now.
Post Reply