MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Help on Development » Bugreports: TV Server / Client » Bugreport Archive » 1.0 RC2 and SVN Builds


1.0 RC2 and SVN Builds Post bugs you found in 1.0 RC2 or any later svn build here.

Reply
 
Thread Tools Display Modes
Old 2008-08-15, 16:54   #1 (permalink)
Portal Member
 
Join Date: Nov 2006
Posts: 60
Thanks: 0
Thanked 1 Time in 1 Post

Country:

My System

Send a message via Skype™ to blaudden
fixed XMLTvImport fails to parse malformed episode part

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
Attached Files
File Type: patch XMLTVImport_CorrectEpisodeNum.patch (1.9 KB, 30 views)
blaudden is offline   Reply With Quote
Old 2008-08-17, 10:33   #2 (permalink)
Portal Developer
 
gibman's Avatar
 
Join Date: Oct 2006
Location: Aarhus
Posts: 741
Thanks: 4
Thanked 75 Times in 52 Posts

Country:

My System

Default

Its in SVN.

0001538: XMLTvImport fails to parse malformed episode part - MediaPortal Bugtracker

Instead of using ; try catch's
u can use "int32.tryparse"

more ellegant.

/gibman
__________________
"It's all a big foodchain.
We eat shit and shit eats us."
gibman is offline   Reply With Quote
Old 2008-08-17, 11:14   #3 (permalink)
Portal Member
 
Join Date: Nov 2006
Posts: 60
Thanks: 0
Thanked 1 Time in 1 Post

Country:

My System

Send a message via Skype™ to blaudden
Default

Right, you learn new things all the time

Thanks!
blaudden is offline   Reply With Quote
Reply

Bookmarks

Tags
episode, malformed, mediacenters, parse, part, xmltvimport

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
bad parsing episode with 3 numbers - ex: episode 111 lyka My TVSeries 4 2008-09-23 12:53
Manual Renaming / Refusing To Parse 3guk My TVSeries 0 2008-02-03 13:38
Series won't parse, please advice emphatic My TVSeries 0 2007-10-27 19:46
Feature Request: Parse Episode based on aired date alteeffour My TVSeries 3 2007-10-21 21:20
SQL error: database disk image is malformed Basz WebEPG 6 2006-09-20 20:35


All times are GMT +1. The time now is 18:17.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden