summaryrefslogtreecommitdiff
path: root/templates/ruutufi/video2.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/ruutufi/video2.xsl')
-rw-r--r--templates/ruutufi/video2.xsl15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/ruutufi/video2.xsl b/templates/ruutufi/video2.xsl
new file mode 100644
index 0000000..39bef06
--- /dev/null
+++ b/templates/ruutufi/video2.xsl
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:str="http://exslt.org/strings">
+
+<xsl:template match="/">
+<mediaurl>
+ <title><xsl:value-of select="concat(id('ruutuVideoInfo')/p[@class='name'], ' ', id('ruutuVideoInfo')/p[@class='timeStamp'])"/></title>
+
+ <url priority="50">wvt:///bin/ruutu-dl?contenttype=video/x-flv&amp;arg=<xsl:value-of select='substring-before(substring-after(//script[contains(., "vplayer1")], "providerURL&apos;, &apos;"), "&apos;")'/>&amp;arg=<xsl:value-of select="str:encode-uri($docurl, true())"/></url>
+</mediaurl>
+</xsl:template>
+
+</xsl:stylesheet>