diff options
-rw-r--r-- | display.c | 7 | ||||
-rw-r--r-- | xml/string.c | 6 | ||||
-rw-r--r-- | xml/string.h | 3 |
3 files changed, 11 insertions, 5 deletions
@@ -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, |