[mythtv-commits] mythtv/master commit: 158b6e5ca by Robert McNamara (rmcnamara)
MythTV
noreply at mythtv.org
Sun Jul 17 03:32:18 UTC 2011
Author: Robert McNamara <rmcnamara at mythtv.org>
Change Date: 2011-07-16T20:31:39-07:00
Push Date: 2011/07/16 20:32:10 -0700
Repository: mythtv
Branch: master
New Revision: 158b6e5cabe26f7fc8001f210976e72c8c5bd514
Changeset: https://github.com/MythTV/mythtv/commit/158b6e5ca
Log:
Metadata: Add some more convenience methods to create Metadata XML simply.
Creating exportable .mxml content is now as simple as (after including metadatacommon.h):
QDomDocument doc = CreateMetadataXML(pginfo);
You can do what you like with the result, but the metadata download classes search for a file in the same dir as the file being worked on (as defined in lookup->Set/GetFilename) with the same filename and a suffix of .mxml.
So, still missing:
* Decide where/when to create .mxml files for recordings (at which point it would work to drop the result in your video dir the mythvideo scanner will pick up the file + mxml and parse the metadata)
* Add some code to dynamically reimport files from offline/portable storage groups into recordings (Chris P'm has mentioned he's written such code)
* Add a MetadataFactory to the theoretical recording import class and tell it to do a lookup on the newly imported file (easy peasy: MetadataFactory *factory(this); factory->AddLookup(pginfo);) and listen for the result event that provides you the fully looked up info which you can assign to your programinfo as you see fit.
Modified:
mythtv/libs/libmythbase/mythversion.h
mythtv/libs/libmythmetadata/metadatacommon.cpp
mythtv/libs/libmythmetadata/metadatacommon.h
More information about the mythtv-commits
mailing list