mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
added channelnumber token to displaymenuschedules
This commit is contained in:
parent
997ab6c06c
commit
3280b839d1
@ -41,6 +41,7 @@
|
||||
{current} true if item is currently selected
|
||||
{separator} true if item is a list separator
|
||||
{channelname} Channel Name
|
||||
{channelnumber} Channel Number
|
||||
{channelid} ChannelID as path to display channel logo
|
||||
{channellogoexists} true if a channel logo exists
|
||||
{whatson} true if menu "What's on" is displayed
|
||||
@ -126,6 +127,7 @@
|
||||
{durationhours} duration, full hours
|
||||
{durationminutes} duration, rest of minutes
|
||||
{channelname} Channel Name
|
||||
{channelnumber} Channel Number
|
||||
{channelid} ChannelID as path to display channel logo
|
||||
{channellogoexists} true if a channel logo exists
|
||||
{hasposter} true if a scraped poster is available for this element
|
||||
|
@ -35,6 +35,7 @@
|
||||
{current} true if item is currently selected
|
||||
{separator} true if item is a list separator
|
||||
{channelname} Channel Name
|
||||
{channelnumber} Channel Number
|
||||
{channelid} ChannelID as path to display channel logo
|
||||
{channellogoexists} true if a channel logo exists
|
||||
{whatson} true if menu "What's on" is displayed
|
||||
@ -67,6 +68,7 @@
|
||||
{durationhours} duration, full hours
|
||||
{durationminutes} duration, rest of minutes
|
||||
{channelname} Channel Name
|
||||
{channelnumber} Channel Number
|
||||
{channelid} ChannelID as path to display channel logo
|
||||
{channellogoexists} true if a channel logo exists
|
||||
{hasposter} true if a scraped poster is available for this element
|
||||
|
@ -168,6 +168,7 @@ void cDisplayMenuItemCurrentSchedulesView::Render(void) {
|
||||
stringTokens.insert(pair<string,string>("channelname", channel->Name() ? channel->Name() : ""));
|
||||
string channelID = *(channel->GetChannelID().ToString());
|
||||
stringTokens.insert(pair<string,string>("channelid", channelID));
|
||||
intTokens.insert(pair<string, int>("channelnumber", channel->Number()));
|
||||
intTokens.insert(pair<string, int>("channellogoexists", imgCache->LogoExists(channelID)));
|
||||
}
|
||||
|
||||
|
@ -335,6 +335,7 @@ void cDisplayMenuItemSchedulesView::SetTokens(void) {
|
||||
stringTokens.insert(pair<string,string>("channelname", channel->Name() ? channel->Name() : ""));
|
||||
string channelID = *(channel->GetChannelID().ToString());
|
||||
stringTokens.insert(pair<string,string>("channelid", channelID));
|
||||
intTokens.insert(pair<string, int>("channelnumber", channel->Number()));
|
||||
intTokens.insert(pair<string, int>("channellogoexists", imgCache->LogoExists(channelID)));
|
||||
if (!event && !selectable) {
|
||||
stringTokens.insert(pair<string,string>("title", channel->Name() ? ParseSeparator(channel->Name()) : ""));
|
||||
@ -342,6 +343,7 @@ void cDisplayMenuItemSchedulesView::SetTokens(void) {
|
||||
} else {
|
||||
stringTokens.insert(pair<string,string>("channelname", ""));
|
||||
stringTokens.insert(pair<string,string>("channelid", ""));
|
||||
intTokens.insert(pair<string, int>("channelnumber", 0));
|
||||
intTokens.insert(pair<string, int>("channellogoexists", 0));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user