diff options
author | Antti Ajanki <antti.ajanki@iki.fi> | 2010-10-24 21:05:47 +0300 |
---|---|---|
committer | Antti Ajanki <antti.ajanki@iki.fi> | 2010-10-24 21:05:47 +0300 |
commit | 4770a7e7d1a06fcea280382c546ae38cf4fd084e (patch) | |
tree | 9fd5b235a907edf4c76ceaf769d0cdbe501399c6 /templates/www.metacafe.com/categories.xsl | |
parent | 439024953d1abe71fd5adce26fac4f17c1aa9f96 (diff) | |
download | vdr-plugin-webvideo-4770a7e7d1a06fcea280382c546ae38cf4fd084e.tar.gz vdr-plugin-webvideo-4770a7e7d1a06fcea280382c546ae38cf4fd084e.tar.bz2 |
rename template directories and add videopage.xsl to each template
Diffstat (limited to 'templates/www.metacafe.com/categories.xsl')
-rw-r--r-- | templates/www.metacafe.com/categories.xsl | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/www.metacafe.com/categories.xsl b/templates/www.metacafe.com/categories.xsl new file mode 100644 index 0000000..d140939 --- /dev/null +++ b/templates/www.metacafe.com/categories.xsl @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> + +<xsl:stylesheet version="1.0" +xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + +<xsl:template match="/"> +<wvmenu> + <title>Metacafe</title> + + <link> + <label>Search</label> + <ref>wvt:///www.metacafe.com/search.xsl</ref> + </link> + + <link> + <label>Most viewed channels</label> + <ref>wvt:///www.metacafe.com/channellist.xsl?srcurl=/api/channels/</ref> + </link> + + <xsl:for-each select="id('LeftCol')/ul/li/a"> + <!-- '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> + </xsl:for-each> +</wvmenu> +</xsl:template> + +</xsl:stylesheet> |