From 71aed6f5cf975ca0c30c2ef90a78e6c5987de355 Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 11 Oct 2014 16:55:30 +0200 Subject: [PATCH] added vps token in menudetailepg --- HISTORY | 1 + skins/metrixhd/xmlfiles/displaymenudetailepg.xml | 2 ++ skinskeleton/xmlfiles/displaymenudetailepg.xml | 2 ++ views/displaymenudetailview.c | 2 ++ 4 files changed, 7 insertions(+) diff --git a/HISTORY b/HISTORY index 697c5ea..6fc9968 100644 --- a/HISTORY +++ b/HISTORY @@ -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 diff --git a/skins/metrixhd/xmlfiles/displaymenudetailepg.xml b/skins/metrixhd/xmlfiles/displaymenudetailepg.xml index 2bc4458..0e4eaeb 100644 --- a/skins/metrixhd/xmlfiles/displaymenudetailepg.xml +++ b/skins/metrixhd/xmlfiles/displaymenudetailepg.xml @@ -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 diff --git a/skinskeleton/xmlfiles/displaymenudetailepg.xml b/skinskeleton/xmlfiles/displaymenudetailepg.xml index c8ecf6d..e610a41 100644 --- a/skinskeleton/xmlfiles/displaymenudetailepg.xml +++ b/skinskeleton/xmlfiles/displaymenudetailepg.xml @@ -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 diff --git a/views/displaymenudetailview.c b/views/displaymenudetailview.c index 35a34ac..8933564 100644 --- a/views/displaymenudetailview.c +++ b/views/displaymenudetailview.c @@ -126,6 +126,7 @@ void cDisplayMenuDetailView::SetTokens(void) { intTokens.insert(pair("duration", event->Duration() / 60)); intTokens.insert(pair("durationhours", event->Duration() / 3600)); stringTokens.insert(pair("durationminutes", *cString::sprintf("%.2d", (event->Duration() / 60)%60))); + stringTokens.insert(pair("vps", *event->GetVpsString())); vector< map< string, string > > reruns; bool hasReruns = LoadReruns(&reruns); @@ -851,6 +852,7 @@ void cDisplayMenuDetailView::DrawHeader(void) { headerIntTokens.insert(pair("duration", event->Duration() / 60)); headerIntTokens.insert(pair("durationhours", event->Duration() / 3600)); headerStringTokens.insert(pair("durationminutes", *cString::sprintf("%.2d", (event->Duration() / 60)%60))); + headerStringTokens.insert(pair("vps", *event->GetVpsString())); stringstream epgImageName; epgImageName << event->EventID();