diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-02-10 15:41:23 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-02-10 15:41:23 +0100 |
commit | 4fc173748b6fa5e7d7809c02770fb054fd2431cc (patch) | |
tree | 3d0be24011878846385f6c097df968ad4770f245 /recording.c | |
parent | 8c403e1b0df6c961662c8733c27faa54bace065b (diff) | |
download | vdr-4fc173748b6fa5e7d7809c02770fb054fd2431cc.tar.gz vdr-4fc173748b6fa5e7d7809c02770fb054fd2431cc.tar.bz2 |
No more trailing '~' in progress display
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/recording.c b/recording.c index 3c0d15bd..d8228875 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.50 2002/02/10 14:19:06 kls Exp $ + * $Id: recording.c 1.51 2002/02/10 15:41:23 kls Exp $ */ #include "recording.h" @@ -459,7 +459,7 @@ const char *cRecording::Title(char Delimiter, bool NewIndicator, int Level) if (Level < 0 || Level == HierarchyLevels()) { struct tm tm_r; struct tm *t = localtime_r(&start, &tm_r); - const char *s; + char *s; if (Level > 0 && (s = strrchr(name, '~')) != NULL) s++; else @@ -473,6 +473,11 @@ const char *cRecording::Title(char Delimiter, bool NewIndicator, int Level) New, Delimiter, s); + // let's not display a trailing '~': + stripspace(titleBuffer); + s = &titleBuffer[strlen(titleBuffer) - 1]; + if (*s == '~') + *s = 0; } else if (Level < HierarchyLevels()) { const char *s = name; |