diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2021-07-01 15:40:46 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2021-07-01 15:40:46 +0200 |
commit | 7301f2de0879fe10bf22c16191fcfd7bf836e148 (patch) | |
tree | 9a13976bb78f498f3b8e9cc2a82b59091e823372 /recording.c | |
parent | 8c7d387e8650d82883685602708fe05c6b655a8b (diff) | |
download | vdr-7301f2de0879fe10bf22c16191fcfd7bf836e148.tar.gz vdr-7301f2de0879fe10bf22c16191fcfd7bf836e148.tar.bz2 |
The Recordings menu now marks recordings with errors, and the number of errors (if any) is displayed in the recording's Info menu
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/recording.c b/recording.c index f9ff14b1..47587de7 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 5.12 2021/06/21 15:30:16 kls Exp $ + * $Id: recording.c 5.13 2021/07/01 15:40:46 kls Exp $ */ #include "recording.h" @@ -1083,7 +1083,8 @@ const char *cRecording::FileName(void) const const char *cRecording::Title(char Delimiter, bool NewIndicator, int Level) const { - char New = NewIndicator && IsNew() ? '*' : ' '; + const char *New = NewIndicator && IsNew() ? "*" : ""; + const char *Err = NewIndicator && (info->Errors() > 0) ? "!" : ""; free(titleBuffer); titleBuffer = NULL; if (Level < 0 || Level == HierarchyLevels()) { @@ -1103,7 +1104,7 @@ const char *cRecording::Title(char Delimiter, bool NewIndicator, int Level) cons Minutes % 60 ); } - titleBuffer = strdup(cString::sprintf("%02d.%02d.%02d%c%02d:%02d%s%c%c%s", + titleBuffer = strdup(cString::sprintf("%02d.%02d.%02d%c%02d:%02d%s%s%s%c%s", t->tm_mday, t->tm_mon + 1, t->tm_year % 100, @@ -1112,6 +1113,7 @@ const char *cRecording::Title(char Delimiter, bool NewIndicator, int Level) cons t->tm_min, *Length, New, + Err, Delimiter, s)); // let's not display a trailing FOLDERDELIMCHAR: |