The XML structure is pretty easy for XBMC
as i can outline ith here
Code: Select all
<movie>
<title>Who knows</title>
<originaltitle>Who knows for real</originaltitle>
<rating>6.100000</rating>
<year>2008</year>
<top250>0</top250>
<votes>50</votes>
<outline>A look at the role of the Buckeye State in the 2004 Presidential Election.</outline>
<plot>A look at the role of the Buckeye State in the 2004 Presidential Election.</plot>
<tagline></tagline>
<runtime>90 min</runtime>
<thumb>moviename.jpg</thumb>
<mpaa>Not available</mpaa>
<playcount>0</playcount>
<watched>false</watched>
<id>tt0432337</id>
<filenameandpath>c:\Dummy_Movie_Files\Movies\...So Goes The Nation.avi</filenameandpath>
<trailer></trailer>
<genre></genre>
<credits></credits>
<director>Adam Del Deo</director>
<actor>
<name>Paul Begala</name>
<role>Himself</role>
</actor>
<actor>
<name>George W. Bush</name>
<role>Himself</role>
</actor>
<actor>
<name>Mary Beth Cahill</name>
<role>Herself</role>
</actor>
<actor>
<name>Ed Gillespie</name>
<role>Himself</role>
</actor>
<actor>
<name>John Kerry</name>
<role>Himself</role>
</actor>
</movie>
but that's from a non-coder's perspective.
i looked at the XML export option in AMC already, and the only difference is the tags, and the fact that it exports all the movies to the same XML file while it would be prefferable to myself (and i'm going to have to sound selfish here) if the files could be seperated and you can choose what you wanted to rename tags, so not only could it be useful for XBMC, it pretty much could be used for a universal movie information export.
The only true difficulty in this,that i can see, is parsing the actor field to write the actors out seperately. Because i attempted to do a script to export the file myself, but not knowing how to parse files it made it difficult when i came to trying to seperate the actors individually. Actors in my catalog are usually seperated by a comma or a new line. And i couldn't figure for the life of me, how to make it recognize the seperate Actors for writing out to XML