Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Patch to avoid deletion of recordings, which have been viewed



Hi Klaus,

Here is a little patch for vdr-1.2.x and vdr-1.3.x, which removes the
"bug", that vdr deletes recordings, which have been viewed
i.e. recordings, which are not new.
Here is the patch:

--- recording.c.orig    2004-12-23 16:43:10.968967808 +0100
+++ recording.c 2004-12-23 16:47:02.631749712 +0100
@@ -124,7 +124,7 @@
            cRecording *r = Recordings.First();
            cRecording *r0 = NULL;
            while (r) {
-                 if (!r->IsEdited() && r->lifetime < MAXLIFETIME) { // edited recordings and recordings with MAXLIFETIME live forever
+                 if (!r->IsEdited() && r->lifetime < MAXLIFETIME && r->IsNew()) { // edited recordings and recordings with MAXLIFETIME live forever. Only delete new recordings which haven't been replayed.
                     if ((r->lifetime == 0 && Priority > r->priority) || // the recording has no guaranteed lifetime and the new recording has higher priority
                         (time(NULL) - r->start) / SECSINDAY > r->lifetime) { // the recording's guaranteed lifetime has expired
                        if (r0) {

Can you please include this patch in the vdr-release?

Stephan.

-- 
loescher@gmx.de
http://www.loescher-online.de/
Try LEO: http://www.leo.org/




Home | Main Index | Thread Index