summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntti Ajanki <antti.ajanki@iki.fi>2013-01-23 20:10:22 +0200
committerAntti Ajanki <antti.ajanki@iki.fi>2013-01-23 20:10:22 +0200
commit8824050934a000b0f04e13bb40b738eb9d10bf6d (patch)
tree18802b22eeade4a15cbeaa7516be97fd9d7f328e
parent209f86fb28c81cbb62b7177be554ed0ef41e1ae5 (diff)
downloadvdr-plugin-webvideo-8824050934a000b0f04e13bb40b738eb9d10bf6d.tar.gz
vdr-plugin-webvideo-8824050934a000b0f04e13bb40b738eb9d10bf6d.tar.bz2
Apply the latest Youtube fix also to videopage.xsl
-rw-r--r--templates/www.youtube.com/videopage.xsl9
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/www.youtube.com/videopage.xsl b/templates/www.youtube.com/videopage.xsl
index 3d03d43..d588634 100644
--- a/templates/www.youtube.com/videopage.xsl
+++ b/templates/www.youtube.com/videopage.xsl
@@ -36,6 +36,13 @@
</xsl:if>
</xsl:for-each>
</xsl:variable>
+ <xsl:variable name="signature">
+ <xsl:for-each select="str:tokenize(., '&amp;')">
+ <xsl:if test="starts-with(., 'sig=')">
+ <xsl:value-of select="str:decode-uri(substring-after(., 'sig='))"/>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:variable>
<xsl:if test="$url">
<url>
@@ -49,7 +56,7 @@
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
- <xsl:value-of select="$url"/>
+ <xsl:value-of select="concat($url, '&amp;signature=', $signature)"/>
</url>
</xsl:if>
</xsl:template>