[mythtv-commits] Ticket #13300: Python Bindings enhancemts according to latest MythTV protocol (91)

MythTV noreply at mythtv.org
Tue Nov 19 08:57:08 UTC 2019


#13300: Python Bindings enhancemts according to latest MythTV protocol (91)
-------------------------------+--------------------------------
 Reporter:  rcrdnalor          |          Owner:  Raymond Wagner
     Type:  Patch - Feature    |         Status:  infoneeded_new
 Priority:  minor              |      Milestone:  31.0
Component:  Bindings - Python  |        Version:  v29-fixes
 Severity:  medium             |     Resolution:
 Keywords:                     |  Ticket locked:  0
-------------------------------+--------------------------------

Comment (by Roland Ernst <rcrernst@…>):

 In [changeset:"871accb425683b7cd2154d23f9ac77c5142fc47a/mythtv"
 871accb425/mythtv]:
 {{{
 #!CommitTicketReference repository="mythtv"
 revision="871accb425683b7cd2154d23f9ac77c5142fc47a"
 Add the 'recordedfile' table to python bindings and make use of it

 This change adds the 'recordedfile' table to the python bindings and
 allows the 'Recorded' instance to use (and update) it.

 Usage:
     $ python
     >>> from MythTV import MythDB
     >>> db = MythDB()
     >>> reciter = db.searchRecorded(recordedid = 4762)
     >>> rec = next(reciter)
     >>> rec
     <Recorded 'The Lady from Shanghai','2019-03-05 13:51:00+01:00' at ..>
     >>> recfile = rec.getRecordedFile()
     >>> recfile
     <RecordedFile '3030_20190305125100.mkv','4762' at 0x7fb32d108ca8>
     >>> recfile.items()
     [('basename', '3030_20190305125100.mkv'), ('filesize', 2793354377),
     ('width', 992), ('height', 720), ('fps', 25.0), ('aspect', 1.377778),
      ........   )]
     >>> exit()

 refs #13300
 }}}

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13300#comment:8>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list