I was trying out the IMDB search function for video items and the FXD
that was generated after the search was invalid.  I got the following
stack trace:

Error parsing /video/CSI: Miami: Freaks & Tweaks.fxd
Traceback (most recent call last):
  File "src/video/xml_parser.py", line 391, in save_parseMovieFile
    return parseMovieFile(file, parent, duplicate_check)
  File "src/video/xml_parser.py", line 422, in parseMovieFile
    freevo = parser.parse(f.read())
  File "/usr/lib/python2.2/site-packages/_xmlplus/utils/qp_xml.py", line 129, in
 parse
    p.Parse(input, 1)
ExpatError: not well-formed (invalid token): line 10, column 40
Crash!
OSD: Loading font "skins/fonts/Vera.ttf"
Building the xml hash database... Error parsing /video/CSI: Miami: Freaks & Twea
ks.fxd
Traceback (most recent call last):
  File "src/video/xml_parser.py", line 391, in save_parseMovieFile
    return parseMovieFile(file, parent, duplicate_check)
  File "src/video/xml_parser.py", line 422, in parseMovieFile
    freevo = parser.parse(f.read())
  File "/usr/lib/python2.2/site-packages/_xmlplus/utils/qp_xml.py", line 129, in
 parse
    p.Parse(input, 1)
ExpatError: not well-formed (invalid token): line 10, column 40
done
Traceback (most recent call last):
  File "src/main.py", line 411, in ?
    main_func()
  File "src/main.py", line 349, in main_func
    app.eventhandler(event)
  File "src/menu.py", line 510, in eventhandler
    action( menuw=self )
  File "src/menu.py", line 99, in select
    self.function(arg=self.arg, menuw=menuw)
  File "src/video/plugins/imdb.py", line 212, in imdb_create_fxd
    fxd.writeFxd()
  File "src/video/fxdimdb.py", line 309, in writeFxd
    raise FxdImdb_XML_Error("""FXD file generated is invalid, please "+
FxdImdb_XML_Error: FXD file generated is invalid, please "+
                                        "post bugreport, tracebacks and fxd file
.
./freevo: line 137: 27704 Killed                  ./runapp python src/main.py $@

The FXD file:

<?xml version="1.0" ?>
<freevo>
  <copyright>
    The information in this file are from the Internet Movie Database (IMDb).
    Please visit http://www.imdb.com for more informations.
    <source url="http://www.imdb.com/Title?0313043"/>
  </copyright>
  <movie title="C.S.I.: Miami">
    <video>
      <file id="f1">CSI: Miami: Freaks & Tweaks.avi</file>
    </video>
    <info>
      <rating></rating>
      <plot>The cases of the Miami, Florida police department's Crime Scene 
Investigations unit.</plot>
      <genre>Crime / Mystery</genre>
      <tagline>A city to die for.</tagline>
      <runtime>60 min</runtime>
      <year>2002</year>
    </info>
  </movie>
</freevo>

As you can see the "&" in the "file id" tag was not escaped into an
"&amp;".

So, given I have an fxd file for a video item, how do I display the
<plot> item in Freevo for a given title?

b.

-- 
My other computer is your Microsoft Windows server.

Brian J. Murrell

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to