[mythtv-users] missing recordings

Michael T. Dean mtdean at thirdcontact.com
Mon Mar 7 05:47:44 UTC 2011


On 03/07/2011 12:31 AM, kanetse wrote:
> 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.

That's what force=True is for.

http://www.mythtv.org/wiki/0.24_Python_bindings/Data_Handlers#Program
or
http://www.mythtv.org/wiki/0.24_Python_bindings/Connection_Handlers#MythBE

It says to force the deletion of the metadata, even if the file can't be 
found--that you're sure it won't cause an orphaned video file.

Mike


More information about the mythtv-users mailing list