Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#12529 closed Bug Report - General (fixed)

find_orphans.py can't delete orphaned recording entries with non-ascii charcters in any attribute

Reported by: Karl Egly Owned by: Raymond Wagner
Priority: minor Milestone: 0.28
Component: Bindings - Python Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

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()]))

Change History (2)

comment:1 Changed 9 years ago by angelaschmid <angela.schmid@…>

Resolution: fixed
Status: newclosed

In e20bd8bf8e274274f4fb89420905015f57233e0c/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:2 Changed 9 years ago by Karl Egly

Milestone: unknown0.28
Note: See TracTickets for help on using tickets.