[mythtv-users] missing recordings

kanetse@gmail.com kane.tse at gmail.com
Mon Mar 7 05:31:21 UTC 2011


On Thu, Mar 3, 2011 at 12:02 PM, Michael T. Dean
<mtdean at thirdcontact.com> wrote:
>
> Feel free to post your script when you finish the rewrite.
>

So I've put together a really short Python script, which will detect
zero-length recordings, delete it from the database; forget the delete
recording (so that it will re-record later); and then trigger the
rescheduler.  Use it as a cron-script.

I have not had a chance to it test out extensively, as I don't
regularly get zero-length recordings.  I will deploy it on my system
over the next little week or more; but I thought I'd put the script
out there, and people can let me know if any modifications are needed.
 Use at your own risk.

I am particularly concerned that MythTV won't delete the zero-byte
file from the disk, since mythfrontend usually reports "The recording
cannot be found" in these cases.  Not sure if the MythTV Python
binding "deleteRecording()" will have the same problem.

Unfortunately, there is no guarantee that the rescheduler won't try to
record the same show on the same tuner again.  This is good if your
tuners periodically work; but not so good if your tuner never
successfully records.  Maybe if someone has some good ideas on how to
get around this; let me know.

Please forgive the poor Python coding technique.  I've only been
working with Python for a few hours, so bear with me.

Comments and suggestions welcomed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mythtv_rerecord_check.py
Type: application/octet-stream
Size: 1670 bytes
Desc: not available
Url : http://www.mythtv.org/pipermail/mythtv-users/attachments/20110306/e591885f/attachment.obj 


More information about the mythtv-users mailing list