summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-08-27 11:14:54 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-08-27 11:14:54 +0200
commit6700e772e5da3757a91fcc500128adc7c16bb355 (patch)
tree40f2f3090c55a165dbd46e17d183493abdf8ed6a /recording.c
parentac5f296f20d2d573e4b800c26c8ec4fff8e9f838 (diff)
downloadvdr-6700e772e5da3757a91fcc500128adc7c16bb355.tar.gz
vdr-6700e772e5da3757a91fcc500128adc7c16bb355.tar.bz2
The Recordings menu now displays the length (in hours:minutes) of each recording
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/recording.c b/recording.c
index 0067e6fe..93433cc7 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.36 2011/08/21 13:43:03 kls Exp $
+ * $Id: recording.c 2.37 2011/08/27 10:55:53 kls Exp $
*/
#include "recording.h"
@@ -873,13 +873,16 @@ const char *cRecording::Title(char Delimiter, bool NewIndicator, int Level) cons
s++;
else
s = name;
- titleBuffer = strdup(cString::sprintf("%02d.%02d.%02d%c%02d:%02d%c%c%s",
+ titleBuffer = strdup(cString::sprintf("%02d.%02d.%02d%c%02d:%02d%c%d:%02d%c%c%s",
t->tm_mday,
t->tm_mon + 1,
t->tm_year % 100,
Delimiter,
t->tm_hour,
t->tm_min,
+ Delimiter,
+ (LengthInSeconds() >= 0) ? LengthInSeconds() / 3600 : 0,
+ (LengthInSeconds() >= 0) ? LengthInSeconds() / 60 % 60 : 0,
New,
Delimiter,
s));