summaryrefslogtreecommitdiff
path: root/templates/metacafe/categories.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/metacafe/categories.xsl')
-rw-r--r--templates/metacafe/categories.xsl33
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/metacafe/categories.xsl b/templates/metacafe/categories.xsl
new file mode 100644
index 0000000..7dc155e
--- /dev/null
+++ b/templates/metacafe/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:///metacafe/search.xsl</ref>
+ </link>
+
+ <link>
+ <label>Most viewed channels</label>
+ <ref>wvt:///metacafe/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:///metacafe/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>