added hasVPS for current scheduling in displaychannel -> epginfo

This commit is contained in:
louis 2014-10-03 07:30:20 +02:00
parent 86ec43925f
commit 7766972eec
4 changed files with 7 additions and 2 deletions

View File

@ -8,3 +8,4 @@ VDR Plugin 'skindesigner' Revision History
Version 0.0.2
- added some more tokens with more detailed audio information in displaychannel -> statusinfo
- added hasVPS for current scheduling in displaychannel -> epginfo

View File

@ -44,6 +44,7 @@
{currentelapsed} Elapsed time of current Schedule in min
{currentremaining} Remaining time of current Schedule in min
{currentrecording} true if current Schedule is recorded
{hasVPS} true if current Schedule has VPS
{nexttitle} Title of next Schedule
{nextsubtitle} Subtitle of next Schedule
{nextstart} Start of next Schedule in hh:mm
@ -80,7 +81,7 @@
<!-- Available Variables statusinfo:
{isRadio} true if channel is a radio channel
{hasVT} true if channel has video text
{hasVT} true if channel has video text
{isStereo} true if a stereo audio trac is available
{isDolby} true if a dolby audio track is available
{isEncrypted} true if channel is encrypted
@ -90,7 +91,7 @@
{trackdesc} description of the current audio track
{tracklang} language of the current audio track
-->
<statusinfo debug="true">
<statusinfo>
<area x="22%" y="94%" width="76%" height="6%" layer="2">
<!-- encrypted / decrypted icon -->
<drawimage name="enc" condition="{isEncrypted}" imagetype="icon" path="ico_crypt_on" x="{areawidth} - {width(enc)}" valign="center" width="{areaheight}*0.8*1.76" height="{areaheight}*0.8"/>

View File

@ -25,6 +25,7 @@
{currentelapsed} Elapsed time of current Schedule in min
{currentremaining} Remaining time of current Schedule in min
{currentrecording} true if current Schedule is recorded
{hasVPS} true if current Schedule has VPS
{nexttitle} Title of next Schedule
{nextsubtitle} Subtitle of next Schedule
{nextstart} Start of next Schedule in hh:mm

View File

@ -135,6 +135,7 @@ void cDisplayChannelView::DrawEPGInfo(const cEvent *present, const cEvent *next,
intTokens.insert(pair<string,int>("currentelapsed", (int)round((time(NULL) - present->StartTime())/60)));
intTokens.insert(pair<string,int>("currentremaining", (int)round((present->EndTime() - time(NULL))/60)));
intTokens.insert(pair<string,int>("currentrecording", presentRecording ? 1 : 0));
intTokens.insert(pair<string,int>("hasVPS", present->Vps()));
} else {
stringTokens.insert(pair<string,string>("currenttitle", ""));
stringTokens.insert(pair<string,string>("currentsubtitle", ""));
@ -145,6 +146,7 @@ void cDisplayChannelView::DrawEPGInfo(const cEvent *present, const cEvent *next,
intTokens.insert(pair<string,int>("currentelapsed", 0));
intTokens.insert(pair<string,int>("currentremaining", 0));
intTokens.insert(pair<string,int>("currentrecording", 0));
intTokens.insert(pair<string,int>("hasVPS", 0));
}
if (next) {