From e6526ae2691991b7f623ae7345ec05985d3f0005 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 17 Sep 2012 09:03:01 +0200 Subject: The script given to VDR with the '-r' option is now also called whenever a recording is deleted --- recording.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'recording.c') diff --git a/recording.c b/recording.c index 49c5276e..6121ee27 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 2.61 2012/09/13 11:02:17 kls Exp $ + * $Id: recording.c 2.62 2012/09/17 08:54:00 kls Exp $ */ #include "recording.h" @@ -1010,8 +1010,10 @@ bool cRecording::Delete(void) RemoveVideoFile(NewName); } isyslog("deleting recording '%s'", FileName()); - if (access(FileName(), F_OK) == 0) + if (access(FileName(), F_OK) == 0) { result = RenameVideoFile(FileName(), NewName); + cRecordingUserCommand::InvokeCommand(RUC_DELETERECORDING, NewName); + } else { isyslog("recording '%s' vanished", FileName()); result = true; // well, we were going to delete it, anyway -- cgit v1.2.3