[mythtv-commits] Ticket #13300: Python Bindings enhancemts according to latest MythTV protocol (91)
MythTV
noreply at mythtv.org
Sat Sep 28 11:12:09 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 rcrdnalor):
With the last change on pull request 182, the
search with given 'recordedid' in 'searchRecorded' and the
access to the 'recordedFile' table works for python3 as well as for
python2
{{{
$ python
Python 3.6.8 (default, Aug 20 2019, 17:12:48)
>>> 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()
}}}
Please give it a try.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13300#comment:6>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list