Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: Prevent recordings from deletion
On 13 Jun 2001 14:12:08 UT, <apieper@gmx.net> wrote:
> I'm using DVB 0.82 + VDR 0.72.
>
> I dont plan to upgrade next time.
>
I have modified VDR 0.72 to never delete recordings with priority 99 and
a name starting with '%'. Look at recording.c
if (Recordings.Load(false)) {
cRecording *r = Recordings.First();
cRecording *r0 = NULL;
while (r) {
+ if ((time(NULL) - r->start) / SECSINDAY > r->lifetime
+ && r->priority < 99 && (r->name)[0] != '%') {
if (r0) {
if (r->priority < r0->priority)
r0 = r;
}
else
r0 = r;
}
r = Recordings.Next(r);
}
if (r0 && r0->Delete())
} return;
Just add the priority comparison. For the comparison against the name
you have to change recording.h to put "name" into the public section.
Emil
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index