Showing posts with label xbmc. Show all posts
Showing posts with label xbmc. Show all posts

Monday, June 13, 2011

Sunday, December 12, 2010

How to get a text listing of an XBMC movies database

This outlines how to get a text listing of your XBMC movies in the format

Title (year)

Step 1)
Export the database. Instructions here

Step 2)
Grab the following xls file. Credit goes to waldherr.org. This is their file with very few modifications.

Step 3)
Parse the xml. On ubuntu simply run:
xsltproc xsl_filename.xsl database.xml > output.txt
waldherr recommends msxsl.exe for windows

How to get an HTML listing of an XBMC movies database

Use this xsl file, follow the instructions here, or on ubuntu run the command

xsltproc ./title_year_link_html.xsl ./database.xml >XMBC_videolisting.html

This is very basic. It doesn't even use the html output option. Surely this can be done better. Way better. It does generate a search query to themoviedb.org though. An example:
Fight Club (1999)
Wayne's World (1992)
Sometimes the search takes you right to the movie info (as the first example), but if there's a collision, it takes you to a search results page.