From 310743fb9ebbf68b253b923a309cc5f635da89a1 Mon Sep 17 00:00:00 2001 From: Antti Ajanki Date: Fri, 23 Jul 2010 20:55:11 +0300 Subject: release 0.3.0 --- templates/bin/ruutu-dl | 36 ++++++++++ templates/bin/yle-dl | 22 ++++++ templates/google/description.xsl | 22 ++++++ templates/google/search.xsl | 38 +++++++++++ templates/google/searchresults.xsl | 85 +++++++++++++++++++++++ templates/google/service.xml | 7 ++ templates/google/video.xsl | 19 ++++++ templates/katsomo/mainmenu.xsl | 26 +++++++ templates/katsomo/navigation.xsl | 48 +++++++++++++ templates/katsomo/search.xsl | 23 +++++++ templates/katsomo/searchresults.xsl | 32 +++++++++ templates/katsomo/service.xml | 7 ++ templates/katsomo/video.xsl | 18 +++++ templates/metacafe/categories.xsl | 33 +++++++++ templates/metacafe/channellist.xsl | 22 ++++++ templates/metacafe/description.xsl | 47 +++++++++++++ templates/metacafe/navigation.xsl | 36 ++++++++++ templates/metacafe/search.xsl | 36 ++++++++++ templates/metacafe/service.xml | 7 ++ templates/metacafe/video.xsl | 14 ++++ templates/ruutufi/description.xsl | 51 ++++++++++++++ templates/ruutufi/mainmenu.xsl | 32 +++++++++ templates/ruutufi/program.xsl | 120 +++++++++++++++++++++++++++++++++ templates/ruutufi/search.xsl | 23 +++++++ templates/ruutufi/series.xsl | 28 ++++++++ templates/ruutufi/service.xml | 7 ++ templates/ruutufi/video.xsl | 23 +++++++ templates/ruutufi/video2.xsl | 15 +++++ templates/subtv/description.xsl | 32 +++++++++ templates/subtv/mainmenu.xsl | 21 ++++++ templates/subtv/navigation.xsl | 42 ++++++++++++ templates/subtv/service.xml | 7 ++ templates/subtv/video.xsl | 19 ++++++ templates/svtplay/categories.xsl | 19 ++++++ templates/svtplay/description.xsl | 41 +++++++++++ templates/svtplay/navigation.xsl | 74 ++++++++++++++++++++ templates/svtplay/programmenu.xsl | 56 +++++++++++++++ templates/svtplay/service.xml | 7 ++ templates/svtplay/video.xsl | 24 +++++++ templates/vimeo/channels.xsl | 33 +++++++++ templates/vimeo/description.xsl | 59 ++++++++++++++++ templates/vimeo/groups.xsl | 33 +++++++++ templates/vimeo/mainmenu.xsl | 28 ++++++++ templates/vimeo/navigation.xsl | 22 ++++++ templates/vimeo/search.xsl | 30 +++++++++ templates/vimeo/searchresults.xsl | 34 ++++++++++ templates/vimeo/service.xml | 7 ++ templates/vimeo/video.xsl | 14 ++++ templates/yleareena/description.xsl | 31 +++++++++ templates/yleareena/livebroadcasts.xsl | 46 +++++++++++++ templates/yleareena/livestream.xsl | 23 +++++++ templates/yleareena/mainmenu.xsl | 35 ++++++++++ templates/yleareena/navigation.xsl | 119 ++++++++++++++++++++++++++++++++ templates/yleareena/programlist.xsl | 22 ++++++ templates/yleareena/search.xsl | 45 +++++++++++++ templates/yleareena/service.xml | 7 ++ templates/yleareena/video.xsl | 18 +++++ templates/youtube/categories.xsl | 29 ++++++++ templates/youtube/description.xsl | 73 ++++++++++++++++++++ templates/youtube/navigation.xsl | 62 +++++++++++++++++ templates/youtube/search.xsl | 39 +++++++++++ templates/youtube/service.xml | 7 ++ templates/youtube/video.xsl | 48 +++++++++++++ 63 files changed, 2083 insertions(+) create mode 100755 templates/bin/ruutu-dl create mode 100755 templates/bin/yle-dl create mode 100644 templates/google/description.xsl create mode 100644 templates/google/search.xsl create mode 100644 templates/google/searchresults.xsl create mode 100644 templates/google/service.xml create mode 100644 templates/google/video.xsl create mode 100644 templates/katsomo/mainmenu.xsl create mode 100644 templates/katsomo/navigation.xsl create mode 100644 templates/katsomo/search.xsl create mode 100644 templates/katsomo/searchresults.xsl create mode 100644 templates/katsomo/service.xml create mode 100644 templates/katsomo/video.xsl create mode 100644 templates/metacafe/categories.xsl create mode 100644 templates/metacafe/channellist.xsl create mode 100644 templates/metacafe/description.xsl create mode 100644 templates/metacafe/navigation.xsl create mode 100644 templates/metacafe/search.xsl create mode 100644 templates/metacafe/service.xml create mode 100644 templates/metacafe/video.xsl create mode 100644 templates/ruutufi/description.xsl create mode 100644 templates/ruutufi/mainmenu.xsl create mode 100644 templates/ruutufi/program.xsl create mode 100644 templates/ruutufi/search.xsl create mode 100644 templates/ruutufi/series.xsl create mode 100644 templates/ruutufi/service.xml create mode 100644 templates/ruutufi/video.xsl create mode 100644 templates/ruutufi/video2.xsl create mode 100644 templates/subtv/description.xsl create mode 100644 templates/subtv/mainmenu.xsl create mode 100644 templates/subtv/navigation.xsl create mode 100644 templates/subtv/service.xml create mode 100644 templates/subtv/video.xsl create mode 100644 templates/svtplay/categories.xsl create mode 100644 templates/svtplay/description.xsl create mode 100644 templates/svtplay/navigation.xsl create mode 100644 templates/svtplay/programmenu.xsl create mode 100644 templates/svtplay/service.xml create mode 100644 templates/svtplay/video.xsl create mode 100644 templates/vimeo/channels.xsl create mode 100644 templates/vimeo/description.xsl create mode 100644 templates/vimeo/groups.xsl create mode 100644 templates/vimeo/mainmenu.xsl create mode 100644 templates/vimeo/navigation.xsl create mode 100644 templates/vimeo/search.xsl create mode 100644 templates/vimeo/searchresults.xsl create mode 100644 templates/vimeo/service.xml create mode 100644 templates/vimeo/video.xsl create mode 100644 templates/yleareena/description.xsl create mode 100644 templates/yleareena/livebroadcasts.xsl create mode 100644 templates/yleareena/livestream.xsl create mode 100644 templates/yleareena/mainmenu.xsl create mode 100644 templates/yleareena/navigation.xsl create mode 100644 templates/yleareena/programlist.xsl create mode 100644 templates/yleareena/search.xsl create mode 100644 templates/yleareena/service.xml create mode 100644 templates/yleareena/video.xsl create mode 100644 templates/youtube/categories.xsl create mode 100644 templates/youtube/description.xsl create mode 100644 templates/youtube/navigation.xsl create mode 100644 templates/youtube/search.xsl create mode 100644 templates/youtube/service.xml create mode 100644 templates/youtube/video.xsl (limited to 'templates') diff --git a/templates/bin/ruutu-dl b/templates/bin/ruutu-dl new file mode 100755 index 0000000..be8d01e --- /dev/null +++ b/templates/bin/ruutu-dl @@ -0,0 +1,36 @@ +#!/bin/sh + +# Downloads a video stream from ruutu.fi to stdout using +# rtmpdump(-yle). The first parameter is the rtmp URL, the second +# parameter is the video page URL. + +RTMPDUMP= + +which rtmpdump > /dev/null 2>&1 +if [ $? = 0 ]; then + RTMPDUMP=rtmpdump +else + which rtmpdump-yle > /dev/null 2>&1 + if [ $? = 0 ]; then + RTMPDUMP=rtmpdump-yle + fi +fi + +if [ "x$RTMPDUMP" = "x" ]; then + echo "ERROR: neither rtmpdump nor rtmpdump-yle not on \$PATH" 1>&2 + exit 1 +fi + +if [ "x$1" = "x" ]; then + echo "Expected rtmp URL as parameter" 1>&2 + exit 1 +fi + +if [ "x$2" = "x" ]; then + echo "Expected ruutu.fi video page URL as parameter" 1>&2 + exit 1 +fi + +$RTMPDUMP -r $1 -q --swfUrl http://n.sestatic.fi/sites/all/modules/media/Nelonen_mediaplayer_4.6.swf --pageUrl $2 -o - + +exit $? diff --git a/templates/bin/yle-dl b/templates/bin/yle-dl new file mode 100755 index 0000000..a317b12 --- /dev/null +++ b/templates/bin/yle-dl @@ -0,0 +1,22 @@ +#!/bin/sh + +# Downloads a video stream from Yle Areena to stdout using yle-dl +# script. The first parameter is the video page URL. + +YLEDL=yle-dl + +which $YLEDL > /dev/null 2>&1 +if [ $? != 0 ]; then + echo "ERROR: $YLEDL is not on \$PATH" 1>&2 + echo "Install rtmpdump-yle from http://users.tkk.fi/~aajanki/rtmpdump-yle/index.html" 1>&2 + exit 1 +fi + +if [ "x$1" = "x" ]; then + echo "Expected Areena URL as parameter" 1>&2 + exit 1 +fi + +$YLEDL $1 -q -o - + +exit $? diff --git a/templates/google/description.xsl b/templates/google/description.xsl new file mode 100644 index 0000000..b7cab19 --- /dev/null +++ b/templates/google/description.xsl @@ -0,0 +1,22 @@ + + + + + + + <xsl:value-of select="//title"/> + + + + + + + + diff --git a/templates/google/search.xsl b/templates/google/search.xsl new file mode 100644 index 0000000..a7a3ab0 --- /dev/null +++ b/templates/google/search.xsl @@ -0,0 +1,38 @@ + + + + + + + Google video search + + + + + + + + Relevance + Rating + Popularity + Date + + + + + All durations + Short (< 4 min) + Medium (4-20 min) + Long (> 20 min) + + + + + + + diff --git a/templates/google/searchresults.xsl b/templates/google/searchresults.xsl new file mode 100644 index 0000000..863d1d8 --- /dev/null +++ b/templates/google/searchresults.xsl @@ -0,0 +1,85 @@ + + + + + + + Search results + + + + + + + + + + + + + wvt:///youtube/video.xsl?srcurl= + wvt:///youtube/description.xsl?srcurl= + + + + + + + wvt:///google/video.xsl?srcurl= + wvt:///google/description.xsl?srcurl= + + + + + + + wvt:///metacafe/video.xsl?srcurl= + wvt:///metacafe/description.xsl?srcurl= + + + + + + + wvt:///vimeo/video.xsl?srcurl=http://www.vimeo.com/moogaloop/load/clip: + wvt:///vimeo/description.xsl?srcurl=http://vimeo.com/api/v2/video/.xml + + + + + + + wvt:///svtplay/video.xsl?srcurl= + wvt:///svtplay/description.xsl?srcurl= + + + + + + + + + + wvt:///google/searchresults.xsl?srcurl= + + + + + + + wvt:///google/searchresults.xsl?srcurl= + + + + + + + + + diff --git a/templates/google/service.xml b/templates/google/service.xml new file mode 100644 index 0000000..3e02e93 --- /dev/null +++ b/templates/google/service.xml @@ -0,0 +1,7 @@ + + + + Google Video + wvt:///google/search.xsl + Google video search + diff --git a/templates/google/video.xsl b/templates/google/video.xsl new file mode 100644 index 0000000..52d6d98 --- /dev/null +++ b/templates/google/video.xsl @@ -0,0 +1,19 @@ + + + + + + + <xsl:value-of select="/html/head/title" /> + + + + + + + + + + diff --git a/templates/katsomo/mainmenu.xsl b/templates/katsomo/mainmenu.xsl new file mode 100644 index 0000000..b7ba1cf --- /dev/null +++ b/templates/katsomo/mainmenu.xsl @@ -0,0 +1,26 @@ + + + + + + + MTV3 Katsomo + + + + wvt:///katsomo/search.xsl + + + + + + wvt:///katsomo/navigation.xsl?srcurl= + + + + + + diff --git a/templates/katsomo/navigation.xsl b/templates/katsomo/navigation.xsl new file mode 100644 index 0000000..e43753d --- /dev/null +++ b/templates/katsomo/navigation.xsl @@ -0,0 +1,48 @@ + + + + + + + + + + wvt:///katsomo/navigation.xsl?srcurl= + + + + + + + + + + + wvt:///katsomo/video.xsl?srcurl=&param=title,&HTTP-header=cookie,webtv.bandwidth%3D1000%3BautoFullScreen%3Dfalse%3Bwebtv.playerPlatform%3D0 + + + + + + <xsl:value-of select="/html/head/meta[@name='title']/@content"/> + + + + + + + + + + + + + + diff --git a/templates/katsomo/search.xsl b/templates/katsomo/search.xsl new file mode 100644 index 0000000..c963b71 --- /dev/null +++ b/templates/katsomo/search.xsl @@ -0,0 +1,23 @@ + + + + + + + Haku + + + + + + + + + + diff --git a/templates/katsomo/searchresults.xsl b/templates/katsomo/searchresults.xsl new file mode 100644 index 0000000..2747afc --- /dev/null +++ b/templates/katsomo/searchresults.xsl @@ -0,0 +1,32 @@ + + + + + + + + + + + wvt:///katsomo/video.xsl?srcurl=&param=title,&HTTP-header=cookie,webtv.bandwidth%3D1000%3BautoFullScreen%3Dfalse%3Bwebtv.playerPlatform%3D0 + + + + + + Hakutulokset: <xsl:value-of select="id('searchResults')/div/div[@class='description']/span"/> + + + + + + + + + + diff --git a/templates/katsomo/service.xml b/templates/katsomo/service.xml new file mode 100644 index 0000000..b1bd0bc --- /dev/null +++ b/templates/katsomo/service.xml @@ -0,0 +1,7 @@ + + + + MTV3 Katsomo + wvt:///katsomo/mainmenu.xsl?srcurl=http%3A//katsomo.fi/ + Net TV service of the Finnish broadcasting company MTV3 + diff --git a/templates/katsomo/video.xsl b/templates/katsomo/video.xsl new file mode 100644 index 0000000..9d20c49 --- /dev/null +++ b/templates/katsomo/video.xsl @@ -0,0 +1,18 @@ + + + + +katsomovideo + + + + <xsl:value-of select="$title"/> + + + + + + diff --git a/templates/metacafe/categories.xsl b/templates/metacafe/categories.xsl new file mode 100644 index 0000000..7dc155e --- /dev/null +++ b/templates/metacafe/categories.xsl @@ -0,0 +1,33 @@ + + + + + + + Metacafe + + + + wvt:///metacafe/search.xsl + + + + + wvt:///metacafe/channellist.xsl?srcurl=/api/channels/ + + + + + + + + wvt:///metacafe/navigation.xsl?srcurl=/api/videos/-/ + + + + + + + diff --git a/templates/metacafe/channellist.xsl b/templates/metacafe/channellist.xsl new file mode 100644 index 0000000..2bb74ec --- /dev/null +++ b/templates/metacafe/channellist.xsl @@ -0,0 +1,22 @@ + + + + + + + + wvt:///metacafe/navigation.xsl?srcurl=/api/users//channel?time=all_time + + + + + + <xsl:value-of select="/rss/channel/title"/> + + + + + + diff --git a/templates/metacafe/description.xsl b/templates/metacafe/description.xsl new file mode 100644 index 0000000..3cb7f2b --- /dev/null +++ b/templates/metacafe/description.xsl @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + <xsl:value-of select="/rss/channel/item/title"/> + + + + + + + + + + + + + + diff --git a/templates/metacafe/navigation.xsl b/templates/metacafe/navigation.xsl new file mode 100644 index 0000000..4ff821a --- /dev/null +++ b/templates/metacafe/navigation.xsl @@ -0,0 +1,36 @@ + + + + + + + + + + wvt:///youtube/video.xsl?srcurl=http%3A//www.youtube.com/watch%3Fv= + + + wvt:///metacafe/video.xsl?srcurl= + + + + wvt:///metacafe/description.xsl?srcurl=/api/item/ + + + + + + <xsl:value-of select="/rss/channel/title"/> + + + + + + + + + + diff --git a/templates/metacafe/search.xsl b/templates/metacafe/search.xsl new file mode 100644 index 0000000..205bd98 --- /dev/null +++ b/templates/metacafe/search.xsl @@ -0,0 +1,36 @@ + + + + + + + Metacafe Search + + + + + + + + Most recent + View Count + Most discussed + + + + + Anytime + During last 24 hours + This week + This month + + + + + + + diff --git a/templates/metacafe/service.xml b/templates/metacafe/service.xml new file mode 100644 index 0000000..8e9fc33 --- /dev/null +++ b/templates/metacafe/service.xml @@ -0,0 +1,7 @@ + + + + Metacafe + wvt:///metacafe/categories.xsl?srcurl=http%3A//www.metacafe.com/videos/ + Video sharing site specializing in short-form original content + diff --git a/templates/metacafe/video.xsl b/templates/metacafe/video.xsl new file mode 100644 index 0000000..884e87f --- /dev/null +++ b/templates/metacafe/video.xsl @@ -0,0 +1,14 @@ + + + + + + + <xsl:value-of select="normalize-space(id('ItemTitle'))"/> + + + + + diff --git a/templates/ruutufi/description.xsl b/templates/ruutufi/description.xsl new file mode 100644 index 0000000..ad04d79 --- /dev/null +++ b/templates/ruutufi/description.xsl @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="/Playerdata/Behavior/Program/@program_name"/> + + + + + + + + + + + + wvt:///ruutufi/video.xsl?srcurl= + + + + + diff --git a/templates/ruutufi/mainmenu.xsl b/templates/ruutufi/mainmenu.xsl new file mode 100644 index 0000000..1d70ac3 --- /dev/null +++ b/templates/ruutufi/mainmenu.xsl @@ -0,0 +1,32 @@ + + + + + + + Ruutu.fi + + + + wvt:///ruutufi/search.xsl + + + + + wvt:///ruutufi/series.xsl?srcurl=http://www.ruutu.fi/ajax/media_get_netti_tv_series_list/all/false&postprocess=json2xml + + + + + wvt:///ruutufi/program.xsl?srcurl=http://www.ruutu.fi/ajax/media_get_nettitv_media/all/video_episode/__/latestdesc/0/25/true/__&postprocess=json2xml + + + + + wvt:///ruutufi/program.xsl?srcurl=http://www.ruutu.fi/ajax/media_get_nettitv_media/all/video_episode/__/most_watched/0/25/true/__&postprocess=json2xml + + + + + diff --git a/templates/ruutufi/program.xsl b/templates/ruutufi/program.xsl new file mode 100644 index 0000000..593036f --- /dev/null +++ b/templates/ruutufi/program.xsl @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + http://www.nelonen.fi/utils/video_config/%3Fq%3D/%26site%3Dwww.ruutu.fi%26ageCheckURL%3Dhttp://sso.nelonenmedia.fi/ajax/check_age/%26current_page%3Dhttp://www.ruutu.fi/video + + wvt:///ruutufi/description.xsl?srcurl= + wvt:///ruutufi/video.xsl?srcurl= + + + + + + + + + + + + <xsl:choose> + <xsl:when test="/jsondocument/dict/video_episode/list/li[1]/dict/series_name"> + <xsl:value-of select="/jsondocument/dict/video_episode/list/li[1]/dict/series_name"/> + </xsl:when> + <xsl:when test="/jsondocument/dict/video/list/li[1]/dict/clip_series_name"> + <xsl:value-of select="/jsondocument/dict/video/list/li[1]/dict/clip_series_name"/> + </xsl:when> + <xsl:otherwise>Ruutu.fi</xsl:otherwise> + </xsl:choose> + + + + + + + + + video_episode + + + video + + + + + + wvt:///ruutufi/program.xsl?srcurl=&postprocess=json2xml + + + + + + + + + + /// + + + + + + + + + 0 + + + + + + + + wvt:///ruutufi/program.xsl?srcurl=&postprocess=json2xml + + + + + + + wvt:///ruutufi/program.xsl?srcurl=&postprocess=json2xml + + + + + + + diff --git a/templates/ruutufi/search.xsl b/templates/ruutufi/search.xsl new file mode 100644 index 0000000..07f2700 --- /dev/null +++ b/templates/ruutufi/search.xsl @@ -0,0 +1,23 @@ + + + + + + + Haku + + + + + + + + + + diff --git a/templates/ruutufi/series.xsl b/templates/ruutufi/series.xsl new file mode 100644 index 0000000..2e8f4d2 --- /dev/null +++ b/templates/ruutufi/series.xsl @@ -0,0 +1,28 @@ + + + + + + + + + + + wvt:///ruutufi/program.xsl?srcurl=http://www.ruutu.fi/ajax/media_get_nettitv_video/all/video_episode//latestdesc/0/25/true/__&postprocess=json2xml + + + + + + + + Kaikki sarjat + + + + + + diff --git a/templates/ruutufi/service.xml b/templates/ruutufi/service.xml new file mode 100644 index 0000000..7a106aa --- /dev/null +++ b/templates/ruutufi/service.xml @@ -0,0 +1,7 @@ + + + + ruutu.fi + wvt:///ruutufi/mainmenu.xsl?srcurl=http%3A//www.ruutu.fi/ + Net TV service of the Finnish broadcasting company Nelonen + diff --git a/templates/ruutufi/video.xsl b/templates/ruutufi/video.xsl new file mode 100644 index 0000000..e6af547 --- /dev/null +++ b/templates/ruutufi/video.xsl @@ -0,0 +1,23 @@ + + + + + + + <xsl:value-of select="concat(/Playerdata/Behavior/Program/@program_name, ' ', /Playerdata/Behavior/Program/@episode_name)"/> + + + + wvt:///bin/ruutu-dl?contenttype=video/x-flv&arg=&arg=http://www.ruutu.fi/video + + + + + + + + + diff --git a/templates/ruutufi/video2.xsl b/templates/ruutufi/video2.xsl new file mode 100644 index 0000000..39bef06 --- /dev/null +++ b/templates/ruutufi/video2.xsl @@ -0,0 +1,15 @@ + + + + + + + <xsl:value-of select="concat(id('ruutuVideoInfo')/p[@class='name'], ' ', id('ruutuVideoInfo')/p[@class='timeStamp'])"/> + + wvt:///bin/ruutu-dl?contenttype=video/x-flv&arg=&arg= + + + + diff --git a/templates/subtv/description.xsl b/templates/subtv/description.xsl new file mode 100644 index 0000000..c914f3b --- /dev/null +++ b/templates/subtv/description.xsl @@ -0,0 +1,32 @@ + + + + + + + + + + + + <xsl:value-of select="$title"/> + + + + + + + + wvt:///subtv/video.xsl?param=pid,&param=title, + + + + + diff --git a/templates/subtv/mainmenu.xsl b/templates/subtv/mainmenu.xsl new file mode 100644 index 0000000..2158295 --- /dev/null +++ b/templates/subtv/mainmenu.xsl @@ -0,0 +1,21 @@ + + + + + + + Subin netti-TV + + + + + wvt:///subtv/navigation.xsl?srcurl= + + + + + + diff --git a/templates/subtv/navigation.xsl b/templates/subtv/navigation.xsl new file mode 100644 index 0000000..3c0b039 --- /dev/null +++ b/templates/subtv/navigation.xsl @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + wvt:///subtv/video.xsl?srcurl=&param=pid,&param=title, + wvt:///subtv/description.xsl?param=title,&param=desc,&param=pubdate,&param=pid, + + + + + + + <xsl:value-of select="$programname"/> + + + + + + + + + + + + + + diff --git a/templates/subtv/service.xml b/templates/subtv/service.xml new file mode 100644 index 0000000..6a7a44f --- /dev/null +++ b/templates/subtv/service.xml @@ -0,0 +1,7 @@ + + + + Subtv + wvt:///subtv/mainmenu.xsl?srcurl=http%3A//www.sub.fi/katsonetista/ + Sub is the third biggest commercial tv channel in Finland. + diff --git a/templates/subtv/video.xsl b/templates/subtv/video.xsl new file mode 100644 index 0000000..32e5b1e --- /dev/null +++ b/templates/subtv/video.xsl @@ -0,0 +1,19 @@ + + + + + + + + + + <xsl:value-of select="$title"/> + + + + + + diff --git a/templates/svtplay/categories.xsl b/templates/svtplay/categories.xsl new file mode 100644 index 0000000..bd64abd --- /dev/null +++ b/templates/svtplay/categories.xsl @@ -0,0 +1,19 @@ + + + + + + + SVT Play + + + + + wvt:///svtplay/navigation.xsl?srcurl= + + + + + + diff --git a/templates/svtplay/description.xsl b/templates/svtplay/description.xsl new file mode 100644 index 0000000..f3c3ae6 --- /dev/null +++ b/templates/svtplay/description.xsl @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + <xsl:choose> + <xsl:when test="normalize-space(//h1/a/img/@alt)"> + <xsl:value-of select="concat(normalize-space(//h1/a/img/@alt), ' ', //div[@class='info']//h2)"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="concat(normalize-space(//h1/a), ' ', //div[@class='info']//h2)"/> + </xsl:otherwise> + </xsl:choose> + + + + + + + diff --git a/templates/svtplay/navigation.xsl b/templates/svtplay/navigation.xsl new file mode 100644 index 0000000..7071dfe --- /dev/null +++ b/templates/svtplay/navigation.xsl @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + wvt:///svtplay/programmenu.xsl?srcurl= + + + + + + + + + wvt:///svtplay/navigation.xsl?srcurl= + + + + + + + wvt:///svtplay/navigation.xsl?srcurl= + + + + + + + + <xsl:choose> + <xsl:when test="normalize-space(//h1)"> + <xsl:value-of select="normalize-space(//h1)"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="normalize-space(//h1/a/img/@alt)"/> + </xsl:otherwise> + </xsl:choose> + + + + + + + + + + + + + + + diff --git a/templates/svtplay/programmenu.xsl b/templates/svtplay/programmenu.xsl new file mode 100644 index 0000000..4bd120c --- /dev/null +++ b/templates/svtplay/programmenu.xsl @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + wvt:///svtplay/description.xsl?srcurl= + wvt:///svtplay/video.xsl?srcurl= + + + + + + + + + wvt:///svtplay/programmenu.xsl?srcurl= + + + + + + + wvt:///svtplay/programmenu.xsl?srcurl= + + + + + + + + <xsl:choose> + <xsl:when test="normalize-space(//h1/a)"> + <xsl:value-of select="normalize-space(//h1/a)"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="normalize-space(//h1/a/img/@alt)"/> + </xsl:otherwise> + </xsl:choose> + + + + + + + diff --git a/templates/svtplay/service.xml b/templates/svtplay/service.xml new file mode 100644 index 0000000..86a36f6 --- /dev/null +++ b/templates/svtplay/service.xml @@ -0,0 +1,7 @@ + + + + SVT Play + wvt:///svtplay/categories.xsl?srcurl=http://svtplay.se/kategorier + Swedish Television, online TV service + diff --git a/templates/svtplay/video.xsl b/templates/svtplay/video.xsl new file mode 100644 index 0000000..af6aeb9 --- /dev/null +++ b/templates/svtplay/video.xsl @@ -0,0 +1,24 @@ + + + + + + + + <xsl:choose> + <xsl:when test="normalize-space(//h1/a/img/@alt)"> + <xsl:value-of select="concat(normalize-space(//h1/a/img/@alt), ' ', //div[@class='info']//h2)"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="concat(normalize-space(//h1/a), ' ', //div[@class='info']//h2)"/> + </xsl:otherwise> + </xsl:choose> + + + + + + + + diff --git a/templates/vimeo/channels.xsl b/templates/vimeo/channels.xsl new file mode 100644 index 0000000..ae3c0d8 --- /dev/null +++ b/templates/vimeo/channels.xsl @@ -0,0 +1,33 @@ + + + + + + + Vimeo Channels + + + + + wvt:///vimeo/navigation.xsl?srcurl=http://vimeo.com/api/v2/channel//videos.xml + + + + + + + + + + + + wvt:///vimeo/channels.xsl?srcurl= + + + + + + + diff --git a/templates/vimeo/description.xsl b/templates/vimeo/description.xsl new file mode 100644 index 0000000..a8797cd --- /dev/null +++ b/templates/vimeo/description.xsl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + <xsl:value-of select="/videos/video/title"/> + + + + + + + + + + + + + wvt:///vimeo/navigation.xsl?srcurl=http://vimeo.com/api/v2//videos.xml + + + + + wvt:///vimeo/video.xsl?srcurl=http://www.vimeo.com/moogaloop/load/clip: + + + + + + diff --git a/templates/vimeo/groups.xsl b/templates/vimeo/groups.xsl new file mode 100644 index 0000000..2379058 --- /dev/null +++ b/templates/vimeo/groups.xsl @@ -0,0 +1,33 @@ + + + + + + + Vimeo Groups + + + + + wvt:///vimeo/navigation.xsl?srcurl=http://vimeo.com/api/v2/group//videos.xml + + + + + + + + + + + + wvt:///vimeo/groups.xsl?srcurl= + + + + + + + diff --git a/templates/vimeo/mainmenu.xsl b/templates/vimeo/mainmenu.xsl new file mode 100644 index 0000000..3667ed7 --- /dev/null +++ b/templates/vimeo/mainmenu.xsl @@ -0,0 +1,28 @@ + + + + + + + Vimeo + + + + wvt:///vimeo/search.xsl?srcurl=http://www.vimeo.com/ + + + + + wvt:///vimeo/channels.xsl?srcurl=http://www.vimeo.com/channels/all + + + + + wvt:///vimeo/groups.xsl?srcurl=http://www.vimeo.com/groups/all + + + + + + diff --git a/templates/vimeo/navigation.xsl b/templates/vimeo/navigation.xsl new file mode 100644 index 0000000..8583212 --- /dev/null +++ b/templates/vimeo/navigation.xsl @@ -0,0 +1,22 @@ + + + + + + + + wvt:///vimeo/video.xsl?srcurl=http://www.vimeo.com/moogaloop/load/clip: + wvt:///vimeo/description.xsl?srcurl=http://vimeo.com/api/v2/video/.xml + + + + + + Vimeo videos + + + + + + diff --git a/templates/vimeo/search.xsl b/templates/vimeo/search.xsl new file mode 100644 index 0000000..4939e25 --- /dev/null +++ b/templates/vimeo/search.xsl @@ -0,0 +1,30 @@ + + + + + + + Vimeo Search + + + + + + + + most relevant + newest + most played + most liked + + + + + + + diff --git a/templates/vimeo/searchresults.xsl b/templates/vimeo/searchresults.xsl new file mode 100644 index 0000000..6f5d817 --- /dev/null +++ b/templates/vimeo/searchresults.xsl @@ -0,0 +1,34 @@ + + + + + + + Search results + + + + + wvt:///vimeo/video.xsl?srcurl=http://www.vimeo.com/moogaloop/load/clip: + wvt:///vimeo/description.xsl?srcurl=http://vimeo.com/api/v2/video/.xml + + + + + + + + + + + + wvt:///vimeo/searchresults.xsl?srcurl= + + + + + + + diff --git a/templates/vimeo/service.xml b/templates/vimeo/service.xml new file mode 100644 index 0000000..77af401 --- /dev/null +++ b/templates/vimeo/service.xml @@ -0,0 +1,7 @@ + + + + Vimeo + wvt:///vimeo/mainmenu.xsl + Vimeo is a video-centric social networking site + diff --git a/templates/vimeo/video.xsl b/templates/vimeo/video.xsl new file mode 100644 index 0000000..3b1b7a9 --- /dev/null +++ b/templates/vimeo/video.xsl @@ -0,0 +1,14 @@ + + + + + + + <xsl:value-of select="/xml/video/caption"/> + + http://www.vimeo.com/moogaloop/play/clip:///?q=sd + + + + diff --git a/templates/yleareena/description.xsl b/templates/yleareena/description.xsl new file mode 100644 index 0000000..2340cb2 --- /dev/null +++ b/templates/yleareena/description.xsl @@ -0,0 +1,31 @@ + + + + + + + <xsl:value-of select="normalize-space(//h1[@class='cliptitle'])"/> + + + + + + + + + diff --git a/templates/yleareena/livebroadcasts.xsl b/templates/yleareena/livebroadcasts.xsl new file mode 100644 index 0000000..865fcee --- /dev/null +++ b/templates/yleareena/livebroadcasts.xsl @@ -0,0 +1,46 @@ + + + + + + + + + + + wvt:///yleareena/livestream.xsl?param=stream, + + + + + + + + wvt:///yleareena/livestream.xsl?param=stream, + + + + + + + + + + + Suorat lähetykset + + + + + + + + + + + diff --git a/templates/yleareena/livestream.xsl b/templates/yleareena/livestream.xsl new file mode 100644 index 0000000..b6d7ee2 --- /dev/null +++ b/templates/yleareena/livestream.xsl @@ -0,0 +1,23 @@ + + + + + + + + + livestream-<xsl:value-of select="$stream"/> + + + wvt:///bin/yle-dl?contenttype=video/x-flv&arg=http%3A//areena.yle.fi/player/index.php%3Fstream%3D%26language%3Dfi + + + + + + + + + + diff --git a/templates/yleareena/mainmenu.xsl b/templates/yleareena/mainmenu.xsl new file mode 100644 index 0000000..d17ede6 --- /dev/null +++ b/templates/yleareena/mainmenu.xsl @@ -0,0 +1,35 @@ + + + + + + + YLE Areena + + + + wvt:///yleareena/search.xsl?srcurl=http://areena.yle.fi/haku + + + + + wvt:///yleareena/livebroadcasts.xsl?srcurl=http://areena.yle.fi/live + + + + + wvt:///yleareena/programlist.xsl?srcurl=http://areena.yle.fi/ohjelmat + + + + + + + + + + + + diff --git a/templates/yleareena/navigation.xsl b/templates/yleareena/navigation.xsl new file mode 100644 index 0000000..bbf0ad7 --- /dev/null +++ b/templates/yleareena/navigation.xsl @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + wvt:///yleareena/navigation.xsl?srcurl= + + + + + + wvt:///yleareena/navigation.xsl?srcurl= + + + + + + + + + + + + + + + + + + + + + + + + + + wvt:///yleareena/navigation.xsl?srcurl= + + + + + + + + + + + + + + wvt:///yleareena/description.xsl?srcurl= + wvt:///yleareena/video.xsl?srcurl=&param=title, + + + + + + + + + + + <xsl:value-of select="$title"/> + + + + + + + + + Hae Areenasta: Ei osumia + + + + + + + + + diff --git a/templates/yleareena/programlist.xsl b/templates/yleareena/programlist.xsl new file mode 100644 index 0000000..0a4ece4 --- /dev/null +++ b/templates/yleareena/programlist.xsl @@ -0,0 +1,22 @@ + + + + + + + + wvt:///yleareena/navigation.xsl?srcurl=&param=title, + + + + + + Ohjelmat A-Ö + + + + + + diff --git a/templates/yleareena/search.xsl b/templates/yleareena/search.xsl new file mode 100644 index 0000000..fa487f4 --- /dev/null +++ b/templates/yleareena/search.xsl @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + Hae Areenasta + + + + + + + + + + Kaikki + Kyllä + + + + + + + diff --git a/templates/yleareena/service.xml b/templates/yleareena/service.xml new file mode 100644 index 0000000..0d7aa03 --- /dev/null +++ b/templates/yleareena/service.xml @@ -0,0 +1,7 @@ + + + + YLE Areena + wvt:///yleareena/mainmenu.xsl?srcurl=http%3A//areena.yle.fi/ + Video service by YLE, the Finland's national public service broadcasting company + diff --git a/templates/yleareena/video.xsl b/templates/yleareena/video.xsl new file mode 100644 index 0000000..f0c2d6a --- /dev/null +++ b/templates/yleareena/video.xsl @@ -0,0 +1,18 @@ + + + + + + + + + + <xsl:value-of select="$title"/> + wvt:///bin/yle-dl?contenttype=video/x-flv&arg= + + + + + diff --git a/templates/youtube/categories.xsl b/templates/youtube/categories.xsl new file mode 100644 index 0000000..080218b --- /dev/null +++ b/templates/youtube/categories.xsl @@ -0,0 +1,29 @@ + + + + + + + Youtube + + + + wvt:///youtube/search.xsl + + + + + + wvt:///youtube/navigation.xsl?srcurl=http://gdata.youtube.com/feeds/api/standardfeeds/most_popular_%3Fmax-results%3D20%26v%3D2 + + + + + + diff --git a/templates/youtube/description.xsl b/templates/youtube/description.xsl new file mode 100644 index 0000000..e728961 --- /dev/null +++ b/templates/youtube/description.xsl @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + <xsl:value-of select="/atom:entry/atom:title"/> + + + + + + + + + + + + + + wvt:///youtube/navigation.xsl?srcurl= + + + + + + + wvt:///youtube/navigation.xsl?srcurl= + + + + + + wvt:///youtube/video.xsl?srcurl=http://www.youtube.com/watch?v= + + + + + + diff --git a/templates/youtube/navigation.xsl b/templates/youtube/navigation.xsl new file mode 100644 index 0000000..a5fd1c7 --- /dev/null +++ b/templates/youtube/navigation.xsl @@ -0,0 +1,62 @@ + + + + + + + + wvt:///youtube/video.xsl?srcurl=http://www.youtube.com/watch?v= + wvt:///youtube/description.xsl?srcurl= + + + + + + + + wvt:///youtube/navigation.xsl?srcurl= + + + + + + + wvt:///youtube/navigation.xsl?srcurl=a + + + + + + + <xsl:value-of select="/atom:feed/atom:title"/> + + + + + wvt:///youtube/navigation.xsl?srcurl= + + + + + + + + + + + + + + + + + + diff --git a/templates/youtube/search.xsl b/templates/youtube/search.xsl new file mode 100644 index 0000000..d28e3c6 --- /dev/null +++ b/templates/youtube/search.xsl @@ -0,0 +1,39 @@ + + + + + + + Youtube Search + + + + + + + + Relevance + Date Added + View Count + Rating + + + + + Anytime + Today + This week + This month + + + + + + + diff --git a/templates/youtube/service.xml b/templates/youtube/service.xml new file mode 100644 index 0000000..f5719a6 --- /dev/null +++ b/templates/youtube/service.xml @@ -0,0 +1,7 @@ + + + + YouTube + wvt:///youtube/categories.xsl?srcurl=http://gdata.youtube.com/schemas/2007/categories.cat + Video sharing service on which users worldwide can upload their videos + diff --git a/templates/youtube/video.xsl b/templates/youtube/video.xsl new file mode 100644 index 0000000..d38a99e --- /dev/null +++ b/templates/youtube/video.xsl @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:choose> + <xsl:when test="/html/head/meta[@name='title']/@content"> + <xsl:value-of select="/html/head/meta[@name='title']/@content"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="//div[@id='watch-vid-title']//h1"/> + </xsl:otherwise> + </xsl:choose> + + + http://www.youtube.com/get_video?video_id=&t=&fmt=22 + http://www.youtube.com/get_video?video_id=&t=&fmt=18 + http://www.youtube.com/get_video?video_id=&t= + + + + -- cgit v1.2.3