summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/www.youtube.com/videopage.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/www.youtube.com/videopage.xsl b/templates/www.youtube.com/videopage.xsl
index 159f50f..802e0d4 100644
--- a/templates/www.youtube.com/videopage.xsl
+++ b/templates/www.youtube.com/videopage.xsl
@@ -78,7 +78,7 @@
<!-- This is also called by youtu.be/videopage.xsl -->
<xsl:template name="main">
<xsl:variable name="videoinfo">
- <xsl:value-of select="substring-before(substring-after(//script[contains(., 'flashvars=\&quot;')], 'flashvars=\&quot;'), '\&quot;')"/>
+ <xsl:value-of select="id('watch-player')/embed/@flashvars"/>
</xsl:variable>
<xsl:call-template name="mediaurl">