diff options
author | Antti Ajanki <antti.ajanki@iki.fi> | 2013-01-23 20:10:22 +0200 |
---|---|---|
committer | Antti Ajanki <antti.ajanki@iki.fi> | 2013-01-23 20:10:22 +0200 |
commit | 8824050934a000b0f04e13bb40b738eb9d10bf6d (patch) | |
tree | 18802b22eeade4a15cbeaa7516be97fd9d7f328e | |
parent | 209f86fb28c81cbb62b7177be554ed0ef41e1ae5 (diff) | |
download | vdr-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.xsl | 9 |
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(., '&')"> + <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, '&signature=', $signature)"/> </url> </xsl:if> </xsl:template> |