[mythtv-commits] Ticket #12458: Python bindings no longer add missing 'videocategory'.'category' during method update() for Video object
MythTV
noreply at mythtv.org
Mon Jun 15 03:20:35 UTC 2015
#12458: Python bindings no longer add missing 'videocategory'.'category' during
method update() for Video object
--------------------------------------+-------------------------
Reporter: spmorton@… | Owner: wagnerrp
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: Bindings - Python | Version: Unspecified
Severity: medium | Keywords:
Ticket locked: 0 |
--------------------------------------+-------------------------
The traceback points to a bad cursor.execute statement at line 870 of
dataheap.py in method 'def _cat_toid(self):' I adjusted the code as
follows to correct the errant behavior.
cursor.execute("INSERT INTO videocategory (category) VALUES (%s)",
[self.category])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/mnt/data/mythtv/Myth-Rec-to-Vid.py", line 288, in update_vid
self.vid.update()
File "/usr/lib/python2.7/site-packages/MythTV/database.py", line 429, in
update
self._push()
File "/usr/lib/python2.7/site-packages/MythTV/dataheap.py", line 885, in
_push
self._cat_toid()
File "/usr/lib/python2.7/site-packages/MythTV/dataheap.py", line 870, in
_cat_toid
self.category)
File "/usr/lib/python2.7/site-packages/MythTV/_conn_mysqldb.py", line
71, in execute
raise MythDBError(MythDBError.DB_RAW, e.args)
MythTV.exceptions.MythDBError: MySQL error: not all arguments converted
during string formatting
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12458>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list