summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-10-03 07:30:20 +0200
committerlouis <louis.braun@gmx.de>2014-10-03 07:30:20 +0200
commit7766972eece16b450621d0e5c72f35733af5b238 (patch)
treedb13f96a5131e7e3dc0df5a42e448d739d417d6d
parent86ec43925f2dbd6fc329ad2c78777a6ef62c1c15 (diff)
downloadvdr-plugin-skindesigner-7766972eece16b450621d0e5c72f35733af5b238.tar.gz
vdr-plugin-skindesigner-7766972eece16b450621d0e5c72f35733af5b238.tar.bz2
added hasVPS for current scheduling in displaychannel -> epginfo
-rw-r--r--HISTORY1
-rw-r--r--skins/default/xmlfiles/displaychannel.xml5
-rw-r--r--skinskeleton/xmlfiles/displaychannel.xml1
-rw-r--r--views/displaychannelview.c2
4 files changed, 7 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 8583bc3..951bf8d 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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
diff --git a/skins/default/xmlfiles/displaychannel.xml b/skins/default/xmlfiles/displaychannel.xml
index 7f43e34..a5ec580 100644
--- a/skins/default/xmlfiles/displaychannel.xml
+++ b/skins/default/xmlfiles/displaychannel.xml
@@ -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"/>
diff --git a/skinskeleton/xmlfiles/displaychannel.xml b/skinskeleton/xmlfiles/displaychannel.xml
index 716ccad..812c1e8 100644
--- a/skinskeleton/xmlfiles/displaychannel.xml
+++ b/skinskeleton/xmlfiles/displaychannel.xml
@@ -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
diff --git a/views/displaychannelview.c b/views/displaychannelview.c
index fb264fd..79b6bee 100644
--- a/views/displaychannelview.c
+++ b/views/displaychannelview.c
@@ -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) {