summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntti Ajanki <antti.ajanki@iki.fi>2010-11-17 19:42:28 +0200
committerAntti Ajanki <antti.ajanki@iki.fi>2010-11-17 19:42:28 +0200
commit0c998299e3b91a36821b2ede65c1333bfd31e381 (patch)
tree0ef9cb1ce39d9921dc0078ace6bc0b83196580d2
parent5d1fa45eb1dd6c24fbc90e9f13b0858e68272c02 (diff)
downloadvdr-plugin-webvideo-0c998299e3b91a36821b2ede65c1333bfd31e381.tar.gz
vdr-plugin-webvideo-0c998299e3b91a36821b2ede65c1333bfd31e381.tar.bz2
download link on description page
-rw-r--r--templates/areena.yle.fi/description.xsl6
-rw-r--r--templates/www.metacafe.com/description.xsl7
2 files changed, 11 insertions, 2 deletions
diff --git a/templates/areena.yle.fi/description.xsl b/templates/areena.yle.fi/description.xsl
index 2340cb2..7f16bc8 100644
--- a/templates/areena.yle.fi/description.xsl
+++ b/templates/areena.yle.fi/description.xsl
@@ -3,6 +3,8 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:param name="docurl"/>
+
<xsl:template match="/">
<wvmenu>
<title><xsl:value-of select="normalize-space(//h1[@class='cliptitle'])"/></title>
@@ -25,6 +27,10 @@
<!-- Kanava -->
<label><xsl:value-of select="id('relatedinfo')//div[@class='relatedinfo-text meta']/ul/li[1]"/></label>
</textarea>
+ <link>
+ <label>Download this video</label>
+ <stream>wvt:///areena.yle.fi/videopage.xsl?srcurl=<xsl:value-of select="$docurl"/></stream>
+ </link>
</wvmenu>
</xsl:template>
diff --git a/templates/www.metacafe.com/description.xsl b/templates/www.metacafe.com/description.xsl
index 3cb7f2b..e09309a 100644
--- a/templates/www.metacafe.com/description.xsl
+++ b/templates/www.metacafe.com/description.xsl
@@ -37,10 +37,13 @@ xmlns:media="http://search.yahoo.com/mrss/">
</textarea>
<textarea>
- <label>published: <xsl:value-of select="/rss/channel/item/pubDate"/></label>
+ <label>Published: <xsl:value-of select="/rss/channel/item/pubDate"/></label>
</textarea>
-
+ <link>
+ <label>Download this video</label>
+ <stream>wvt:///www.metacafe.com/videopage.xsl?srcurl=<xsl:value-of select="/rss/channel/item/link"/></stream>
+ </link>
</wvmenu>
</xsl:template>