Media Companion

Discussion and development board for the program Media Companion.
 
HomeHome  FAQFAQ  SearchSearch  RegisterRegister  Log inLog in  

Share | 
 

 Dr. Seuss (TVDB xml error?)

View previous topic View next topic Go down 
AuthorMessage
cyeagerLMT
New User
New User


Posts : 2
Join date : 2010-04-08

PostSubject: Dr. Seuss (TVDB xml error?)   Mon Apr 12, 2010 10:44 pm

When using the TV show selector (in fact, ANY search using 'seuss') the program returns: "TVDB seems to have an error with the xml for this search".

Yet, when I search TVDB manually, it finds the show just fine. XBMC also has no problem finding the show. Thoughts?
Back to top Go down
View user profile
billyad2000
Admin
avatar

Posts : 1326
Join date : 2008-09-20

PostSubject: Re: Dr. Seuss (TVDB xml error?)   Mon Apr 12, 2010 10:58 pm

The TVDB API is different to the website.

The API search for TV Shows containing 'Seuss' is this:
http://www.thetvdb.com/api/GetSeries.php?seriesname=seuss&language=all

By pasting the link into your browser you will notice that the page cannot be displayed,

The xml source is below, i've highlighted in red the xml error that needs to be fixed.

<?xml version="1.0" encoding="UTF-8" ?>
<Data>
<Series>
<seriesid>77606</seriesid>
<language>en</language>
<SeriesName>The Wubbulous World of Dr. Seuss</SeriesName>
<banner>text/77606.jpg</banner>
<Overview>This show takes the famous Dr. Seuss characters and puts them into all sorts of adventures, exploring and teaching things to the viewing audience. The Cat in the Hat has his little pack of Cat in the Hat's who he shows things to. Horton has his son who he teaches things to. It's a very educational and fun show. The Wubbulous World of Dr. Seuss originally aired on Nickelodeon and was nominated for five Daytime Emmy Awards, including Outstanding Children's Program, for three years in a row. The series combines 3-D computer animation and the puppetry of Jim Henson. The Cat in the Hat is the host of the show. He's joined by other familiar characters, such as Horton the Elephant, the Grinch, Yertle the Turtle, and a few new characters.
<br></Overview>
<FirstAired>1996-10-01</FirstAired>
<IMDB_ID>tt0166937</IMDB_ID>
<id>77606</id>
</Series>
<Series>
<seriesid>81901</seriesid>
<language>en</language>
<SeriesName>Dr. Seuss</SeriesName>
<banner>graphical/81901-g.jpg</banner>
<Overview>A series of cartoon adaptations of Theodor 'Dr. Seuss' Geisel's wonderful children's stories, beginning in 1966 with MGM Television's hit television special of 'How the Grinch Stole Christmas'.</Overview>
<id>81901</id>
</Series>
</Data>

Simply put the document header states it is <?xml version="1.0" encoding="UTF-8" ?>
but any xml reader will raise an exception here since the <br> tag is not closed. The fix is to remove it.

XBMC works because it does not read the file as xml, but treats it as normal text and looks for patterns. With Media Companion gen1 I used a similar method, but this created it's own problems.

Easier to just mention the issue over at the TVDB forums, which will result in them fixing the bad xml.

_________________
Do you have a problem with Media Companion, before posting a bug then please check you have the very latest version of Media Companion http://billyad2000.darkbb.com/announcements-f1/
Back to top Go down
View user profile http://billyad2000.co.uk
cyeagerLMT
New User
New User


Posts : 2
Join date : 2010-04-08

PostSubject: Re: Dr. Seuss (TVDB xml error?)   Mon Apr 12, 2010 11:16 pm

Done and done. Thanks! Keep up the great work!
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Dr. Seuss (TVDB xml error?)   

Back to top Go down
 
Dr. Seuss (TVDB xml error?)
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Selenium RC; Permission denied on session.([error] Element not found ")
» Can I check the error message displayed or not in Selenium?
» Getting error when i run selenium script in Eclipse, please help
» Response_Code = -1 Error_Message = Request Error
» Timeout after 30000 ms (common Error)

Permissions in this forum:You cannot reply to topics in this forum
Media Companion :: Media Companion :: Bug Discussion-
Jump to: