[mythtv-commits] Ticket #6418: Additions to MythVideo.py

MythTV mythtv at cvs.mythtv.org
Thu Apr 2 16:15:27 UTC 2009

#6418: Additions to MythVideo.py
 Reporter:  r.d.vaughan at rogers.com  |       Owner:  awithers
     Type:  enhancement             |      Status:  new     
 Priority:  minor                   |   Milestone:  0.22    
Component:  Bindings - Python       |     Version:          
 Severity:  low                     |     Mlocked:  0       
 Three new routines added to MythVideo.py

 1) getTitleId - Retrieve the intid from the videometadata table matching
 the passed title or returns None if the metadata record does not exist.

 2) getTableFieldNames - Return an array of table field names from the
 passed table name or returns None if the table does not exist.

 3) getMetadataDictionary - Return a dictionary of field names with meta
 data for the passed video file or returns None if the video file has no
 videometadata record.

 The 'getMetadataDictionary' routine allows python scripts to remain
 somewhat resilient to changes in the videometadata table as the
 'getMetadata' routine passes a array of metadata which assumes your script
 is aware of the exact position of the fields in the videometadata table.

 This patch does not change any of the existing MythVideo.py functionality.

Ticket URL: <http://svn.mythtv.org/trac/ticket/6418>
MythTV <http://www.mythtv.org/>

More information about the mythtv-commits mailing list