[mythtv-commits] Ticket #13614: Python Bindings fails on Recorded.update() during silence detection

MythTV noreply at mythtv.org
Sun May 10 12:26:10 UTC 2020


#13614: Python Bindings fails on Recorded.update() during silence detection
-------------------------------+---------------------------
 Reporter:  rcrdnalor          |          Owner:  rcrdnalor
     Type:  Patch - Bug Fix    |         Status:  closed
 Priority:  minor              |      Milestone:  31.1
Component:  Bindings - Python  |        Version:  v31-fixes
 Severity:  medium             |     Resolution:  fixed
 Keywords:  silence detection  |  Ticket locked:  0
-------------------------------+---------------------------

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

 In [changeset:"ce23a0225fcec2afbdfe5a7e82170e28f406c830/mythtv"
 ce23a0225/mythtv]:
             {{{
             #!CommitTicketReference repository="mythtv"
 revision="ce23a0225fcec2afbdfe5a7e82170e28f406c830"
             Fix mysql cursor class to handle bytearrays

 Newer Python MySQLdb modules call 'cursor.execute()' multiple times
 from 'cursor.executemany()'.
 With python3 and python3-MySQLdb > 1.4.0 these call-backs containing
 a query are bytearrays, resulting in a traceback in the '_sanitize'
 method.

 Note: This '_sanitize' method is only needed when creating a query within
 the Python Bindings, but not necessary when python-mysqldb itself calls
 the
 cursor.execute() method.

 Fixes #13614

 (cherry picked from commit b2e9c6a44233570704554894bf45e01bfa8e26a7)
             }}}

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


More information about the mythtv-commits mailing list