summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2005-01-15 21:00:57 +0000
committerlordjaxom <lordjaxom>2005-01-15 21:00:57 +0000
commit42d54c80ef8591d5ad3ec406e37a138bd8c962e1 (patch)
tree3d3cb5bfdac4492473104f9dcb27e9df4605025e
parentf12c23cf36eb930c2dfa5ffaa7f995945b992c73 (diff)
downloadvdr-plugin-text2skin-42d54c80ef8591d5ad3ec406e37a138bd8c962e1.tar.gz
vdr-plugin-text2skin-42d54c80ef8591d5ad3ec406e37a138bd8c962e1.tar.bz2
- implemented token {ChannelID}
-rw-r--r--display.c7
-rw-r--r--xml/string.c6
-rw-r--r--xml/string.h3
3 files changed, 11 insertions, 5 deletions
diff --git a/display.c b/display.c
index 446f9c7..31ecbb6 100644
--- a/display.c
+++ b/display.c
@@ -1,5 +1,5 @@
/*
- * $Id: display.c,v 1.9 2005/01/12 21:23:20 lordjaxom Exp $
+ * $Id: display.c,v 1.10 2005/01/15 21:00:57 lordjaxom Exp $
*/
#include "render.h"
@@ -126,6 +126,11 @@ cxType cText2SkinDisplayChannel::GetTokenData(const txToken &Token)
? (cxType)Sources.Get(mChannel->Source())->Description()
: (cxType)false;
+ case tTChannelID:
+ return mChannel != NULL
+ ? (cxType)(const char*)mChannel->GetChannelID().ToString()
+ : (cxType)false;
+
case tPresentStartDateTime:
return mPresent != NULL
? (cxType)TimeType(mPresent->StartTime(), Token.Attrib.Text)
diff --git a/xml/string.c b/xml/string.c
index 5c0eab7..3727797 100644
--- a/xml/string.c
+++ b/xml/string.c
@@ -1,5 +1,5 @@
/*
- * $Id: string.c,v 1.9 2005/01/15 20:54:37 lordjaxom Exp $
+ * $Id: string.c,v 1.10 2005/01/15 21:00:57 lordjaxom Exp $
*/
#include "xml/string.h"
@@ -10,8 +10,8 @@ static const char *Tokens[__COUNT_TOKEN__] = {
// Channel Display
"ChannelNumber", "ChannelName", "ChannelShortName", "ChannelBouquet", "ChannelPortal",
- "ChannelSource", "PresentStartDateTime", "PresentVPSDateTime", "PresentEndDateTime",
- "PresentDuration", "PresentProgress", "PresentRemaining",
+ "ChannelSource", "ChannelID", "PresentStartDateTime", "PresentVPSDateTime",
+ "PresentEndDateTime", "PresentDuration", "PresentProgress", "PresentRemaining",
"PresentTitle", "PresentShortText", "PresentDescription", "FollowingStartDateTime",
"FollowingVPSDateTime", "FollowingEndDateTime", "FollowingDuration",
"FollowingTitle", "FollowingShortText", "FollowingDescription", "Language",
diff --git a/xml/string.h b/xml/string.h
index 8cd849d..631b35a 100644
--- a/xml/string.h
+++ b/xml/string.h
@@ -1,5 +1,5 @@
/*
- * $Id: string.h,v 1.10 2005/01/15 20:54:37 lordjaxom Exp $
+ * $Id: string.h,v 1.11 2005/01/15 21:00:57 lordjaxom Exp $
*/
#ifndef VDR_TEXT2SKIN_XML_STRING_H
@@ -22,6 +22,7 @@ enum exToken {
tChannelBouquet,
tChannelPortal,
tChannelSource,
+ tTChannelID, // (name clash)
// next 8 also in Menu
tPresentStartDateTime,
tPresentVPSDateTime,