diff options
author | Antti Ajanki <antti.ajanki@iki.fi> | 2012-09-30 20:42:57 +0300 |
---|---|---|
committer | Antti Ajanki <antti.ajanki@iki.fi> | 2012-09-30 20:42:57 +0300 |
commit | e47f1de6430c1bc84d45b699724a7fc4074e176f (patch) | |
tree | 5ac3b8d710908592f1c10fc9ab92cbe619fc373a | |
parent | d12e028bbf6d0c8cb818899d05ebdf74b211a1c8 (diff) | |
download | vdr-plugin-webvideo-e47f1de6430c1bc84d45b699724a7fc4074e176f.tar.gz vdr-plugin-webvideo-e47f1de6430c1bc84d45b699724a7fc4074e176f.tar.bz2 |
fixed Youtube
-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> |