summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-26 12:03:28 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-26 12:03:28 +0100
commit168348e7e4025d51e2a9cce5415cbd92a7622a45 (patch)
treeaf6e19f75d6e1dfcf55ddf306225d8a971810261
parent655b2297b98095b5fb05fd755a57813beb1ce335 (diff)
downloadvdr-168348e7e4025d51e2a9cce5415cbd92a7622a45.tar.gz
vdr-168348e7e4025d51e2a9cce5415cbd92a7622a45.tar.bz2
Lines tagged with '#' in the 'info.vdr' file of a recording are now silently ignored when reading that file
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY3
-rw-r--r--recording.c3
-rw-r--r--vdr.54
4 files changed, 9 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 257cec3f..8c8dc59a 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -978,6 +978,7 @@ Peter Bieringer <pb@bieringer.de>
for reporting a leftover 'summary.vdr' in vdr.5
for adding more error messages and line numbers when reading EPG data and info.vdr
for fixing handling "more than 3 byte" key sequences in cKbdRemote::ReadKeySequence()
+ for suggesting to ignore lines tagged with '#' in the 'info.vdr' file of a recording
Alexander Damhuis <ad@phonedation.de>
for reporting problems when deleting a timer that is currently recording
diff --git a/HISTORY b/HISTORY
index 1cf05622..4c804eef 100644
--- a/HISTORY
+++ b/HISTORY
@@ -4404,3 +4404,6 @@ Video Disk Recorder Revision History
- Fixed setting events to timers in case a non-VPS event has expired.
- There is now a log message "timer ... set to event ..." when defining a timer
from the EPG menu.
+- Lines tagged with '#' in the 'info.vdr' file of a recording are now silently
+ ignored when reading that file (suggested by Peter Bieringer). Such lines can
+ be used by external tools to store arbitrary information.
diff --git a/recording.c b/recording.c
index d6f30879..b8db2647 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 1.139 2006/02/25 17:05:48 kls Exp $
+ * $Id: recording.c 1.140 2006/02/26 11:59:59 kls Exp $
*/
#include "recording.h"
@@ -356,6 +356,7 @@ bool cRecordingInfo::Read(FILE *f)
case '@': free(aux);
aux = strdup(t);
break;
+ case '#': break; // comments are ignored
default: if (!ownEvent->Parse(s)) {
esyslog("ERROR: EPG data problem in line %d", line);
return false;
diff --git a/vdr.5 b/vdr.5
index 1be01671..7eed461d 100644
--- a/vdr.5
+++ b/vdr.5
@@ -8,7 +8,7 @@
.\" License as specified in the file COPYING that comes with the
.\" vdr distribution.
.\"
-.\" $Id: vdr.5 1.52 2006/02/25 12:39:23 kls Exp $
+.\" $Id: vdr.5 1.53 2006/02/26 12:01:21 kls Exp $
.\"
.TH vdr 5 "19 Feb 2006" "1.3.43" "Video Disk Recorder Files"
.SH NAME
@@ -567,6 +567,8 @@ timer (if given) is copied into this file, using the '@' tag.
This is a plain ASCII file and contains tagged lines like the \fBEPG DATA\fR
file (see the description of the \fIepg.data\fR file). Note that the lowercase
tags ('c' and 'e') will not appear in an \fIinfo.vdr\fR file.
+Lines tagged with '#' are ignored and can be used by external tools to
+store arbitrary information.
.SS RESUME
The file \fIresume.vdr\fR (if present in a recording directory) contains
the position within the recording where the last replay session left off.