Media Companion
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Media Companion

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

 

 Dr. Seuss (TVDB xml error?)

Go down 
2 posters
AuthorMessage
cyeagerLMT
New User
New User



Posts : 2
Join date : 2010-04-08

Dr. Seuss (TVDB xml error?) Empty
PostSubject: Dr. Seuss (TVDB xml error?)   Dr. Seuss (TVDB xml error?) Icon_minitimeMon 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
billyad2000
Admin
billyad2000


Posts : 1326
Join date : 2008-09-20

Dr. Seuss (TVDB xml error?) Empty
PostSubject: Re: Dr. Seuss (TVDB xml error?)   Dr. Seuss (TVDB xml error?) Icon_minitimeMon 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.
Back to top Go down
http://billyad2000.co.uk
cyeagerLMT
New User
New User



Posts : 2
Join date : 2010-04-08

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

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





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

Back to top Go down
 
Dr. Seuss (TVDB xml error?)
Back to top 
Page 1 of 1
 Similar topics
-
» New Release Media Companion gen2 3.244
» TVDB back up but not scraping
» TVDB ID as default
» TVDB not functioning
» 3.293 - Tv ep. screenshots are created when they don't exist on TVDB....

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