summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-10-03 12:44:15 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-10-03 12:44:15 +0200
commit71c17e50642d9256dc5cac86a284f80f8acf75bb (patch)
treecec1cb014182aa9bca9e74d2b645b2a8d8927e41 /recording.c
parente4f7e025e59707b655032f7a3347bf89bad47484 (diff)
downloadvdr-71c17e50642d9256dc5cac86a284f80f8acf75bb.tar.gz
vdr-71c17e50642d9256dc5cac86a284f80f8acf75bb.tar.bz2
Implemented 'new recording' indicator
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/recording.c b/recording.c
index ae59688f..60ea4a1c 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.17 2000/10/03 11:32:03 kls Exp $
+ * $Id: recording.c 1.18 2000/10/03 12:39:28 kls Exp $
*/
#define _GNU_SOURCE
@@ -15,6 +15,7 @@
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
+#include "dvbapi.h"
#include "interface.h"
#include "tools.h"
#include "videodir.h"
@@ -170,17 +171,24 @@ const char *cRecording::FileName(void)
return fileName;
}
-const char *cRecording::Title(char Delimiter)
+const char *cRecording::Title(char Delimiter, bool NewIndicator)
{
+ char New = ' ';
+ if (NewIndicator) {
+ cResumeFile ResumeFile(FileName());
+ if (ResumeFile.Read() <= 0)
+ New = '*';
+ }
delete titleBuffer;
titleBuffer = NULL;
struct tm *t = localtime(&start);
- asprintf(&titleBuffer, "%02d.%02d%c%02d:%02d%c%s",
+ asprintf(&titleBuffer, "%02d.%02d%c%02d:%02d%c%c%s",
t->tm_mday,
t->tm_mon + 1,
Delimiter,
t->tm_hour,
t->tm_min,
+ New,
Delimiter,
name);
return titleBuffer;