From 61be651f9642661535046dbb3af21844ad668f3a Mon Sep 17 00:00:00 2001 From: Frank Neumann Date: Sun, 21 May 2017 20:04:45 +0200 Subject: Commit t2s_rerunandtab.diff (thx tomas@vdr-portal.de) --- common.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'common.c') diff --git a/common.c b/common.c index 5a8c9c9..a3f03fa 100644 --- a/common.c +++ b/common.c @@ -144,7 +144,7 @@ bool GetFrontendHasSignal(void) std::string AddExtInfoToDescription(const char *Title, const char *ShortText, const char *Description, const char *Aux, bool StripAux) { // max. width so lines don't get wrapped - #define MAX_CHARS 50 + #define MAX_CHARS 100 // prepare the description std::stringstream desc(""); @@ -178,9 +178,15 @@ std::string AddExtInfoToDescription(const char *Title, const char *ShortText, co list->First(); r && i < 5; r = list->Next(r)) { i++; std::stringstream buf; + cChannel *channel = Channels.GetByChannelID(r->event->ChannelID(), true, true); + if (channel) + buf << "\n"; + buf << " - "; + buf << channel->ShortName(true); buf << " - "; buf << *DayDateTime(r->event->StartTime()); - buf << ": " << r->event->Title(); + buf << " - " << r->event->Title(); + if (!isempty(r->event->ShortText())) buf << "~" << r->event->ShortText(); desc << FitToWidth(buf, MAX_CHARS) << "\n"; } -- cgit v1.2.3