diff options
author | Antti Ajanki <antti.ajanki@iki.fi> | 2010-10-30 13:18:13 +0300 |
---|---|---|
committer | Antti Ajanki <antti.ajanki@iki.fi> | 2010-10-30 13:18:13 +0300 |
commit | e47a9ce4bb862f3794065327e33daceb0a09f426 (patch) | |
tree | 4f806342dcc771fc65d4ec824fa7ec1aabb56b42 | |
parent | ba5a068ff93443ee3ec07f97cac0409b6977bfd0 (diff) | |
download | vdr-plugin-webvideo-e47a9ce4bb862f3794065327e33daceb0a09f426.tar.gz vdr-plugin-webvideo-e47a9ce4bb862f3794065327e33daceb0a09f426.tar.bz2 |
support youtu.be URLs
-rw-r--r-- | debian/webvi.conf | 4 | ||||
-rw-r--r-- | debian/webvi.plugin.conf | 4 | ||||
-rw-r--r-- | examples/webvi.conf | 4 | ||||
-rw-r--r-- | examples/webvi.plugin.conf | 4 | ||||
-rw-r--r-- | templates/www.youtube.com/videopage.xsl | 7 | ||||
-rw-r--r-- | templates/youtu.be/videopage.xsl | 11 |
6 files changed, 33 insertions, 1 deletions
diff --git a/debian/webvi.conf b/debian/webvi.conf index adc430e..d6810a4 100644 --- a/debian/webvi.conf +++ b/debian/webvi.conf @@ -18,3 +18,7 @@ templatepath = /usr/share/webvi/templates # Limit the quality when streaming to make the playback smooth even if # the network connection is slow. stream-max-quality = 50 + +[youtu.be] + +stream-max-quality = 50 diff --git a/debian/webvi.plugin.conf b/debian/webvi.plugin.conf index c4f5072..7f89c06 100644 --- a/debian/webvi.plugin.conf +++ b/debian/webvi.plugin.conf @@ -5,3 +5,7 @@ templatepath = /usr/share/webvi/templates [www.youtube.com] stream-max-quality = 50 + +[youtu.be] + +stream-max-quality = 50 diff --git a/examples/webvi.conf b/examples/webvi.conf index ac27c54..cf7638c 100644 --- a/examples/webvi.conf +++ b/examples/webvi.conf @@ -18,3 +18,7 @@ templatepath = /usr/local/share/webvi/templates # Limit the quality when streaming to make the playback smooth even if # the network connection is slow. stream-max-quality = 50 + +[youtu.be] + +stream-max-quality = 50 diff --git a/examples/webvi.plugin.conf b/examples/webvi.plugin.conf index 02c2e1a..f8d0a96 100644 --- a/examples/webvi.plugin.conf +++ b/examples/webvi.plugin.conf @@ -5,3 +5,7 @@ templatepath = /usr/local/share/webvi/templates [www.youtube.com] stream-max-quality = 50 + +[youtu.be] + +stream-max-quality = 50 diff --git a/templates/www.youtube.com/videopage.xsl b/templates/www.youtube.com/videopage.xsl index a82583d..159f50f 100644 --- a/templates/www.youtube.com/videopage.xsl +++ b/templates/www.youtube.com/videopage.xsl @@ -75,7 +75,8 @@ </mediaurl> </xsl:template> -<xsl:template match="/"> +<!-- 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=\"')], 'flashvars=\"'), '\"')"/> </xsl:variable> @@ -86,4 +87,8 @@ </xsl:call-template> </xsl:template> +<xsl:template match="/"> + <xsl:call-template name="main"/> +</xsl:template> + </xsl:stylesheet> diff --git a/templates/youtu.be/videopage.xsl b/templates/youtu.be/videopage.xsl new file mode 100644 index 0000000..a0f89dc --- /dev/null +++ b/templates/youtu.be/videopage.xsl @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> + +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + +<xsl:import href="../www.youtube.com/videopage.xsl"/> + +<xsl:template match="/"> + <xsl:call-template name="main"/> +</xsl:template> + +</xsl:stylesheet> |