diff options
-rw-r--r-- | templates/www.youtube.com/video.xsl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/www.youtube.com/video.xsl b/templates/www.youtube.com/video.xsl index c78d4ab..6fe1282 100644 --- a/templates/www.youtube.com/video.xsl +++ b/templates/www.youtube.com/video.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> |