From e47a9ce4bb862f3794065327e33daceb0a09f426 Mon Sep 17 00:00:00 2001 From: Antti Ajanki Date: Sat, 30 Oct 2010 13:18:13 +0300 Subject: support youtu.be URLs --- debian/webvi.conf | 4 ++++ debian/webvi.plugin.conf | 4 ++++ examples/webvi.conf | 4 ++++ examples/webvi.plugin.conf | 4 ++++ templates/www.youtube.com/videopage.xsl | 7 ++++++- templates/youtu.be/videopage.xsl | 11 +++++++++++ 6 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 templates/youtu.be/videopage.xsl 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 @@ - + + @@ -86,4 +87,8 @@ + + + + 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 @@ + + + + + + + + + + + -- cgit v1.2.3