diff options
author | Antti Ajanki <antti.ajanki@iki.fi> | 2011-06-12 21:31:13 +0300 |
---|---|---|
committer | Antti Ajanki <antti.ajanki@iki.fi> | 2011-06-12 21:31:13 +0300 |
commit | aa5f06ef31d8ffa7a2686f0d09e15dc5f916cf5a (patch) | |
tree | 51906037195d75328692a7389b58842fbfc314f9 /templates/www.metacafe.com/navigation.xsl | |
parent | e375777493092647626dcda8c4360542655bf131 (diff) | |
download | vdr-plugin-webvideo-aa5f06ef31d8ffa7a2686f0d09e15dc5f916cf5a.tar.gz vdr-plugin-webvideo-aa5f06ef31d8ffa7a2686f0d09e15dc5f916cf5a.tar.bz2 |
Metacafe category titles
Diffstat (limited to 'templates/www.metacafe.com/navigation.xsl')
-rw-r--r-- | templates/www.metacafe.com/navigation.xsl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/www.metacafe.com/navigation.xsl b/templates/www.metacafe.com/navigation.xsl index 72e5d65..a319b48 100644 --- a/templates/www.metacafe.com/navigation.xsl +++ b/templates/www.metacafe.com/navigation.xsl @@ -21,7 +21,16 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <wvmenu> - <title><xsl:value-of select="/rss/channel/title"/></title> + <title> + <xsl:choose> + <xsl:when test="/rss/channel/title/text()"> + <xsl:value-of select="/rss/channel/title"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="/rss/channel/item[1]/category"/> + </xsl:otherwise> + </xsl:choose> + </title> <xsl:apply-templates select="/rss/channel/item"/> |