[mythtv-commits] Ticket #12529: find_orphans.py can't delete orphaned recording entries with non-ascii charcters in any attribute
MythTV
noreply at mythtv.org
Sat Oct 31 16:55:40 UTC 2015
#12529: find_orphans.py can't delete orphaned recording entries with non-ascii
charcters in any attribute
--------------------------------------+-------------------------
Reporter: dekarl | Owner: wagnerrp
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: Bindings - Python | Version: Master Head
Severity: medium | Keywords:
Ticket locked: 0 |
--------------------------------------+-------------------------
It appears as if deleteRecording (and related methods) wants to serialize
the whole recording object instead of only channel id and start time. 0xDC
being upper case U-Umlaut.
{{{
Traceback (most recent call last):
File "/var/lib/mythtv2/find_orphans.py", line 230, in <module>
main()
File "/var/lib/mythtv2/find_orphans.py", line 214, in main
opt[1](opt[2])
File "/var/lib/mythtv2/find_orphans.py", line 129, in delete_recs
rec.delete(True, True)
File "/usr/lib/python2.7/dist-packages/MythTV/dataheap.py", line 363, in
delete
return self.getProgram().delete(force, rerecord)
File "/usr/lib/python2.7/dist-packages/MythTV/mythproto.py", line 960,
in delete
res = int(be.deleteRecording(self, force=force))
File "/usr/lib/python2.7/dist-packages/MythTV/mythproto.py", line 656,
in deleteRecording
[command,program.toString()]))
File "/usr/lib/python2.7/dist-packages/MythTV/mythproto.py", line 155,
in backendCommand
return self._conn.command.backendCommand(data)
File "/usr/lib/python2.7/dist-packages/MythTV/connections.py", line 295,
in backendCommand
self.socket.sendheader(data)
File "/usr/lib/python2.7/dist-packages/MythTV/utility/other.py", line
392, in sendheader
self.send(data, flags)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdc' in
position 531: ordinal not in range(128)
}}}
From
https://github.com/MythTV/mythtv/blob/master/mythtv/bindings/python/MythTV/mythproto.py#L646
{{{
return self.backendCommand(BACKEND_SEP.join([command,program.toString()]))
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12529>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list