diff options
author | Antti Ajanki <antti.ajanki@iki.fi> | 2012-06-02 08:58:56 +0300 |
---|---|---|
committer | Antti Ajanki <antti.ajanki@iki.fi> | 2012-06-02 08:58:56 +0300 |
commit | 629ec41b13d6a9fcce98fd7764f8fd0806e693eb (patch) | |
tree | 6773bd3e320d11ffb62e90659eee6418db5c7408 | |
parent | c198fe165884d2b41f70e987af32ee3a50e653b7 (diff) | |
download | vdr-plugin-webvideo-629ec41b13d6a9fcce98fd7764f8fd0806e693eb.tar.gz vdr-plugin-webvideo-629ec41b13d6a9fcce98fd7764f8fd0806e693eb.tar.bz2 |
small fix for metacafe
-rw-r--r-- | templates/www.metacafe.com/categories.xsl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/www.metacafe.com/categories.xsl b/templates/www.metacafe.com/categories.xsl index d140939..a2eb2b5 100644 --- a/templates/www.metacafe.com/categories.xsl +++ b/templates/www.metacafe.com/categories.xsl @@ -21,10 +21,12 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- '18+ Only' is empty unless family filter is off. Ignore the category until I find a way to turn off the filter. --> <xsl:if test="@title != '18+ Only'"> - <link> - <label><xsl:value-of select="@title"/></label> - <ref>wvt:///www.metacafe.com/navigation.xsl?srcurl=/api/videos/-/<xsl:value-of select="substring-after(@href, '/videos/')"/></ref> - </link> + <xsl:if test="@title != ''"> + <link> + <label><xsl:value-of select="."/></label> + <ref>wvt:///www.metacafe.com/navigation.xsl?srcurl=/api/videos/-/<xsl:value-of select="substring-after(@href, '/videos/')"/></ref> + </link> + </xsl:if> </xsl:if> </xsl:for-each> </wvmenu> |