[mythtv] Patch to DO deletion when file doesn't exit
Isaac Richards
ijr at case.edu
Wed Feb 16 22:50:41 UTC 2005
On Wednesday 16 February 2005 05:39 pm, Kevin Kuphal wrote:
> Daniel Thor Kristjansson wrote:
> >On Wed, 16 Feb 2005, Mark wrote:
> >]-----BEGIN PGP SIGNED MESSAGE-----
> >]The current behaviour appears to be if the file of a recording doesn't
> >]exist then the backend will refuse to remove the data from the database.
> >]I can't see any sense in this, what else would you want to do with
> >]useless metadata?
> >]How else do I get rid of these darn empty programs?
> >]
> >]Patch attched leaves the "file didn't exist" warning in, but now removes
> >]the metadata too.
> >]
> >]It's trivial, but hasn't been tested more than once
> >
> >Wouldn't it be just as trivial to add some code to TVRec to check if
> >the recorder started before inserting metadata?
>
> As a simple fix, it *should* be. As some have pointed out on -users,
> the end user could be left with no recording and no visible reason why.
> The best solution is probably a method by which the user is left with
> some kind of visible indicator of the problem while still preserving the
> deletability of the metadata and file. Any easy fix along these lines
> might be not to insert the filename into the DB until the recording is
> really going and then adjusting the code in the necessary places that if
> the filename doesn't exist to notify the user accordingly. I don't know
> how many places in the code manipulate the filename but it might not be
> too many...
Or, just use the filesize field in recorded. Mark those recordings that are 0
size somehow on screen. Allow removal of metadata with 0 in the filesize
field.
Isaac
More information about the mythtv-dev
mailing list