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