[mythtv-commits] mythtv/master commit: 581175a90 by Robert McNamara (rmcnamara)
MythTV
noreply at mythtv.org
Thu Jun 30 01:11:25 UTC 2011
Author: Robert McNamara <rmcnamara at mythtv.org>
Change Date: 2011-06-29T18:05:51-07:00
Push Date: 2011/06/29 18:11:19 -0700
Repository: mythtv
Branch: master
New Revision: 581175a90dc9b96232b00b9a36c7141a1ff558eb
Changeset: https://github.com/MythTV/mythtv/commit/581175a90
Log:
Metadata: Parse XBMC-style NFO files.
XBMC has a XML NFO format that goes side-by-side files in media directories. These XML files contain most of the basic metadata. This commit adds basic support for parsing the metadata out of them.
I didn't implement everything in the format, yet, and I haven't turned it on for Television stuff (since the format is somewhat ugly in this regard-- there's one file for the series, and one for the episode. I want to think a bit more about it.). The format also doesn't implement all of the metadata *we* keep and pull in, but it does have the basics that people care about-- title, subtitle, year, season, episode, plot, inetref, etc.
I'll flesh out the parser a little more to cover cast, director, and other people, and maybe watched/unwatched status too. Once I'm done with that I'll circle back and get it working for TV shows as well. Most of the needed stuff is already in the parser, just need to combine the two sets of metadata in a way that makes sense.
Format documentation: http://wiki.xbmc.org/?title=Import_-_Export_Library
Hilarious logging censored by sphery.
Modified:
mythtv/libs/libmythbase/mythversion.h
mythtv/libs/libmythmetadata/metadatacommon.cpp
mythtv/libs/libmythmetadata/metadatacommon.h
mythtv/libs/libmythmetadata/metadatadownload.cpp
mythtv/libs/libmythmetadata/metadatadownload.h
mythtv/programs/mythfrontend/videodlg.cpp
More information about the mythtv-commits
mailing list