[mythtv-users] delete_recordings.py

Stephen Worthington stephen_agent at jsw.gen.nz
Tue Jun 7 18:07:17 UTC 2022


On Tue, 07 Jun 2022 16:25:35 +0200, you wrote:

>Per Jessen wrote:
>
>> I see the wiki says support in version 24 only -
>> 
>> https://www.mythtv.org/wiki/Delete_recordings.py
>> 
>> I've used the script with version 29, and now also 30, only one minor
>> problem, see below.  Not exactly any exhaustive tests though.
>> 
>> Below is a list of matching recordings:
>>          0. [2021-12-11T23:15:00+01:00] Titanic au coeur de l'épave -
>> deleting
>> Traceback (most recent call last):
>>   File "/usr/local/bin/delete_recording.py", line 132, in <module>
>>     print 'deleting',str(rec)
>> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in
>> position 33: ordinal not in range(128)
>
>Please ignore this, it is a local(e) issue. 

Unfortunately, it is Python 2 and will not work with later versions of
MythTV as they use Python 3.  It looks to be fairly simple code so it
should convert easily to Python 3.


More information about the mythtv-users mailing list