diff options
author | Frank Neumann <fnu@yavdr.org> | 2017-05-21 20:04:45 +0200 |
---|---|---|
committer | Frank Neumann <fnu@yavdr.org> | 2017-05-21 20:04:45 +0200 |
commit | 61be651f9642661535046dbb3af21844ad668f3a (patch) | |
tree | 80c5dfbe1e66878c9c5d7bb67406b27659f74dbf /common.c | |
parent | 7bd88a078d31f57e8fcfc0b93c45c3e8b13c5190 (diff) | |
download | vdr-plugin-text2skin-61be651f9642661535046dbb3af21844ad668f3a.tar.gz vdr-plugin-text2skin-61be651f9642661535046dbb3af21844ad668f3a.tar.bz2 |
Commit t2s_rerunandtab.diff (thx tomas@vdr-portal.de)
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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"; } |