summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntti Ajanki <antti.ajanki@iki.fi>2012-01-29 14:45:46 +0200
committerAntti Ajanki <antti.ajanki@iki.fi>2012-01-29 14:45:46 +0200
commit9ec82abc0b9c4467bc48e5744f654886e73b10a4 (patch)
tree60a5f084d7117a1a22261f1ee3204c27941d3f2b
parent1663c40dd22f7f9f38164cbdd79232d9702ec77b (diff)
downloadvdr-plugin-webvideo-9ec82abc0b9c4467bc48e5744f654886e73b10a4.tar.gz
vdr-plugin-webvideo-9ec82abc0b9c4467bc48e5744f654886e73b10a4.tar.bz2
Fixed Youtube
-rw-r--r--templates/www.youtube.com/videopage.xsl10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/www.youtube.com/videopage.xsl b/templates/www.youtube.com/videopage.xsl
index cf74054..3d03d43 100644
--- a/templates/www.youtube.com/videopage.xsl
+++ b/templates/www.youtube.com/videopage.xsl
@@ -65,11 +65,11 @@
<xsl:when test="$title">
<xsl:value-of select="$title"/>
</xsl:when>
- <xsl:when test="contains(substring-after($videoinfo, '&amp;title='), '&amp;')">
- <xsl:value-of select="substring-before(substring-after($videoinfo, '&amp;title='), '&amp;')"/>
+ <xsl:when test="contains(substring-after($videoinfo, '\u0026amp;title='), '\u0026amp;')">
+ <xsl:value-of select="substring-before(substring-after($videoinfo, '\u0026amp;title='), '\u0026amp;')"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="substring-after($videoinfo, '&amp;title=')"/>
+ <xsl:value-of select="substring-after($videoinfo, '\u0026amp;title=')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
@@ -77,7 +77,7 @@
<xsl:value-of select="str:decode-uri(str:replace($titleparam, '+', ' '))"/>
</title>
- <xsl:for-each select="str:split(str:decode-uri(substring-before(substring-after($videoinfo, '&amp;url_encoded_fmt_stream_map='), '&amp;')), ',')">
+ <xsl:for-each select="str:split(str:decode-uri(substring-before(substring-after($videoinfo, '\u0026amp;url_encoded_fmt_stream_map='), '\u0026amp;')), ',')">
<xsl:call-template name="fmturl"/>
</xsl:for-each>
@@ -87,7 +87,7 @@
<!-- This is also called by youtu.be/videopage.xsl -->
<xsl:template name="main">
<xsl:variable name="videoinfo">
- <xsl:value-of select="id('watch-player')/embed/@flashvars"/>
+ <xsl:value-of select="//script[contains(., 'flashvars')]/text()"/>
</xsl:variable>
<xsl:call-template name="mediaurl">