added vps token in menudetailepg

This commit is contained in:
louis 2014-10-11 16:55:30 +02:00
parent 0e0f05cfcb
commit 71aed6f5cf
4 changed files with 7 additions and 0 deletions

View File

@ -20,3 +20,4 @@ Version 0.0.2
- added setup options to configure rerun display behaviour
- changed display of menu lists, do flush first after complete rendering
- added support for custom tokens in dislaychannel
- added vps token in menudetailepg

View File

@ -100,6 +100,7 @@
{duration} duration of event
{durationhours} duration, full hours
{durationminutes} duration, rest of minutes
{vps} vps description string
{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
@ -153,6 +154,7 @@
{duration} duration of event
{durationhours} duration, full hours
{durationminutes} duration, rest of minutes
{vps} vps description string
{channelid} ChannelID as path to display channel logo
{hasreruns} true if reruns of this event are found
{reruns[]} array with reruns

View File

@ -14,6 +14,7 @@
{duration} duration of event
{durationhours} duration, full hours
{durationminutes} duration, rest of minutes
{vps} vps description string
{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
@ -47,6 +48,7 @@
{duration} duration of event
{durationhours} duration, full hours
{durationminutes} duration, rest of minutes
{vps} vps description string
{channelid} ChannelID as path to display channel logo
{hasreruns} true if reruns of this event are found
{reruns[]} array with reruns

View File

@ -126,6 +126,7 @@ void cDisplayMenuDetailView::SetTokens(void) {
intTokens.insert(pair<string,int>("duration", event->Duration() / 60));
intTokens.insert(pair<string,int>("durationhours", event->Duration() / 3600));
stringTokens.insert(pair<string,string>("durationminutes", *cString::sprintf("%.2d", (event->Duration() / 60)%60)));
stringTokens.insert(pair<string,string>("vps", *event->GetVpsString()));
vector< map< string, string > > reruns;
bool hasReruns = LoadReruns(&reruns);
@ -851,6 +852,7 @@ void cDisplayMenuDetailView::DrawHeader(void) {
headerIntTokens.insert(pair<string,int>("duration", event->Duration() / 60));
headerIntTokens.insert(pair<string,int>("durationhours", event->Duration() / 3600));
headerStringTokens.insert(pair<string,string>("durationminutes", *cString::sprintf("%.2d", (event->Duration() / 60)%60)));
headerStringTokens.insert(pair<string,string>("vps", *event->GetVpsString()));
stringstream epgImageName;
epgImageName << event->EventID();