[mythtv] Automatic deletion
cpinkham at bc2va.org
Tue Jul 1 21:54:31 EDT 2003
> There's probably better methods floating around out there, but here's
> what I run:
I think the new 'ratings' code that went into CVS a few days ago could
go a long way towards getting auto-deletion working. Since I don't
really care that much that "Smokey and The Bandit 10" gets recorded
and give it a very low priority, then if it's recorded I won't care
that much if it gets deleted. On the contrary, "Monster Garage" with
it's +50 priority should never get deleted unless I delete it.
If we had a flag on the 'recorded' table that said whether the show
was eligible for deletion, then that could give the show say another
-10 or -20 rating which would lower it's rating so it could get deleted
before other shows which we hadn't watched but which had low ratings
to begin with.
It would seem like we could just have each backend run a routine
every minute or so that checks for free space above our threshold.
If the free space is below our threshold, it looks at all locally
recorded programs and deletes the ones with the lowest rating.
If you want a program to never be deleted, then set it's rating
very high (like 1000) so it would always have the highest rating
and never be auto-deleted.
The threshold could even be configurable, so the user could choose
how many Gigs or Megs to keep free.
More information about the mythtv-dev