XMLTvImport fails to parse malformed episode part (1 Viewer)

blaudden

Portal Pro
November 19, 2006
68
2
Home Country
Sweden Sweden
Hi,

xmltvimport fails to parse parts of the"xmltv_ns" spec(it'll get an exception in Int32.Parse) and thus nothing is inserted into the database. Have written a patch that ignores the values it can't parse. Well, it writes a log message and then set the value to "". Should be much better than failing all.

<programme start="20080818155000 +0200" stop="20080818164000 +0200" channel="guld.tv4.se">
<title lang="sv">Kojak</title>
<desc lang="sv">Del 111 av 119.</desc>
<credits>
<actor>Dan Frazer</actor>
<actor>George Savalas</actor>
<actor>Kevin Dobson</actor>
<actor>Telly Savalas</actor>
</credits>
<date>1973</date>
<category lang="en">series</category>
<category lang="en">Crime/Mystery</category>
<episode-num system="xmltv_ns">1972 . 110/119 . 1/</episode-num>
^ HERE it's expecting another value
<episode-num system="onscreen">Del 111 av 119 säsong 1973</episode-num>
<video>
<aspect>4:3</aspect>
</video>
</programme>


BTW. Spec for xmltv_ns field can be found at XML: XMLTV - DTD for TV listings

/ Magnus
 

Users who are viewing this thread

Top Bottom