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 /templates | |
parent | ba5a068ff93443ee3ec07f97cac0409b6977bfd0 (diff) | |
download | vdr-plugin-webvideo-e47a9ce4bb862f3794065327e33daceb0a09f426.tar.gz vdr-plugin-webvideo-e47a9ce4bb862f3794065327e33daceb0a09f426.tar.bz2 |
support youtu.be URLs
Diffstat (limited to 'templates')
-rw-r--r-- | templates/www.youtube.com/videopage.xsl | 7 | ||||
-rw-r--r-- | templates/youtu.be/videopage.xsl | 11 |
2 files changed, 17 insertions, 1 deletions
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> |