added {channelnumber} and {channelname} Tokens in displaymenudetailepg

This commit is contained in:
louis 2014-11-15 15:21:36 +01:00
parent 0ed710a868
commit 182a6df2a9
4 changed files with 19 additions and 2 deletions

View File

@ -67,8 +67,10 @@ Version 0.0.3
- fixed Bug that displaychannel was not shown after closing displaymenu with
"backspace" (with active menuorg plugin)
- fixed Bug with menuselection Patch
- added tokens {month}, {monthname} and {year} in displaymenutimers listitem and currentitem
- added dedicated tokens for posters and banners in <srapercontent> in displaychannel and displayreplay
- added tokens {month}, {monthname} and {year} in displaymenutimers listitem and
currentitem
- added dedicated tokens for posters and banners in <srapercontent> in
displaychannel and displayreplay
- added Plugin Interface
- fixed crash when clearing a message in displaychannel and displayreplay
- fixed positioning of scaled video window if borders are configured
@ -78,3 +80,6 @@ Version 0.0.4
- added SVG Support - thanks to Manuel Reimer!
Version 0.0.5
- added {channelnumber} and {channelname} Tokens in displaymenudetailepg
detailheader

View File

@ -101,6 +101,8 @@
{durationhours} duration, full hours
{durationminutes} duration, rest of minutes
{vps} vps description string
{channelname} Channelname of event
{channelnumber} Channelnumber of event
{channelid} ChannelID as path to display channel logo
{ismovie} true if event is scraped as a movie
{isseries} true if event is scraped as a series

View File

@ -15,6 +15,8 @@
{durationhours} duration, full hours
{durationminutes} duration, rest of minutes
{vps} vps description string
{channelname} Channelname of event
{channelnumber} Channelnumber of event
{channelid} ChannelID as path to display channel logo
{ismovie} true if event is scraped as a movie
{isseries} true if event is scraped as a series

View File

@ -856,6 +856,14 @@ void cDisplayMenuDetailView::DrawHeader(void) {
headerIntTokens.insert(pair<string, int>("daynumeric", sStartTime->tm_mday));
headerIntTokens.insert(pair<string, int>("month", sStartTime->tm_mon+1));
const cChannel *channel = Channels.GetByChannelID(event->ChannelID());
if (channel) {
headerStringTokens.insert(pair<string,string>("channelname", channel->Name() ? channel->Name() : ""));
headerIntTokens.insert(pair<string, int>("channelnumber", channel->Number()));
} else {
headerStringTokens.insert(pair<string,string>("channelname", ""));
headerIntTokens.insert(pair<string, int>("channelnumber", 0));
}
headerStringTokens.insert(pair<string,string>("channelid", *(event->ChannelID().ToString())));
bool isRunning = false;