summaryrefslogtreecommitdiff
path: root/views/displaymenuitemcurrentview.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-11-29 11:55:53 +0100
committerlouis <louis.braun@gmx.de>2014-11-29 11:55:53 +0100
commitaf864fd4492569b19b956b3082e95fa091b18ed8 (patch)
treea57bb4ef0ca57a463e23e050399a444230958163 /views/displaymenuitemcurrentview.c
parent76ab3e4cef2ef37ea8e9f2ababfd4b8c98ceaf54 (diff)
downloadvdr-plugin-skindesigner-af864fd4492569b19b956b3082e95fa091b18ed8.tar.gz
vdr-plugin-skindesigner-af864fd4492569b19b956b3082e95fa091b18ed8.tar.bz2
added {channellogoexists} Token everywhere where {channelid} is available
Diffstat (limited to 'views/displaymenuitemcurrentview.c')
-rw-r--r--views/displaymenuitemcurrentview.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/views/displaymenuitemcurrentview.c b/views/displaymenuitemcurrentview.c
index 2be72be..58a6118 100644
--- a/views/displaymenuitemcurrentview.c
+++ b/views/displaymenuitemcurrentview.c
@@ -249,7 +249,9 @@ void cDisplayMenuItemCurrentChannelView::Render(void) {
intTokens.insert(pair<string,int>("frequency", channel->Frequency()));
stringTokens.insert(pair<string,string>("name", channel->Name() ? channel->Name() : ""));
- stringTokens.insert(pair<string,string>("channelid", *(channel->GetChannelID().ToString())));
+ string channelID = *(channel->GetChannelID().ToString());
+ stringTokens.insert(pair<string,string>("channelid", channelID));
+ intTokens.insert(pair<string, int>("channellogoexists", imgCache->LogoExists(channelID)));
//Channel Source Information
const cSource *source = Sources.Get(channel->Source());
@@ -456,11 +458,14 @@ void cDisplayMenuItemCurrentTimerView::Render(void) {
const cChannel *channel = timer->Channel();
if (channel) {
stringTokens.insert(pair<string,string>("channelname", channel->Name() ? channel->Name() : ""));
- stringTokens.insert(pair<string,string>("channelid", *(channel->GetChannelID().ToString())));
+ string channelID = *(channel->GetChannelID().ToString());
+ stringTokens.insert(pair<string,string>("channelid", channelID));
+ intTokens.insert(pair<string, int>("channellogoexists", imgCache->LogoExists(channelID)));
intTokens.insert(pair<string,int>("channelnumber", channel->Number()));
} else {
stringTokens.insert(pair<string,string>("channelname", ""));
stringTokens.insert(pair<string,string>("channelid", ""));
+ intTokens.insert(pair<string, int>("channellogoexists", 0));
intTokens.insert(pair<string,int>("channelnumber", 0));
}