From 7e0babe7ffd6cc1d15d7936e20932931fe1df916 Mon Sep 17 00:00:00 2001 From: Antti Ajanki Date: Sun, 8 Aug 2010 10:29:30 +0300 Subject: =?UTF-8?q?MoonTV=20support=20(contributed=20by=20Matti=20Lehtim?= =?UTF-8?q?=C3=A4ki)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HISTORY | 4 ++++ templates/moontv/description.xsl | 19 +++++++++++++++++++ templates/moontv/mainmenu.xsl | 23 +++++++++++++++++++++++ templates/moontv/navigation.xsl | 20 ++++++++++++++++++++ templates/moontv/programlist.xsl | 20 ++++++++++++++++++++ templates/moontv/rss.xsl | 28 ++++++++++++++++++++++++++++ templates/moontv/service.xml | 7 +++++++ templates/moontv/video.xsl | 15 +++++++++++++++ 8 files changed, 136 insertions(+) create mode 100644 templates/moontv/description.xsl create mode 100644 templates/moontv/mainmenu.xsl create mode 100644 templates/moontv/navigation.xsl create mode 100644 templates/moontv/programlist.xsl create mode 100644 templates/moontv/rss.xsl create mode 100644 templates/moontv/service.xml create mode 100644 templates/moontv/video.xsl diff --git a/HISTORY b/HISTORY index 8708c26..931f1f8 100644 --- a/HISTORY +++ b/HISTORY @@ -192,3 +192,7 @@ Video site modules: - Timers are no longer marked as "Unfinished" after the download has been completed. - Retry failed timers again later. + +2010-xx-xx: Version 0.3.2 + +- New video service: MoonTV (contributed by Matti Lehtimäki) diff --git a/templates/moontv/description.xsl b/templates/moontv/description.xsl new file mode 100644 index 0000000..6665f7f --- /dev/null +++ b/templates/moontv/description.xsl @@ -0,0 +1,19 @@ + + + + + + + <xsl:value-of select="normalize-space(concat(substring-before(//div[@id='single-entry']/h3, '–'), ' - ' , substring-after(//div[@id='single-entry']/h3, '–')))"/> + + + + + + diff --git a/templates/moontv/mainmenu.xsl b/templates/moontv/mainmenu.xsl new file mode 100644 index 0000000..fea995b --- /dev/null +++ b/templates/moontv/mainmenu.xsl @@ -0,0 +1,23 @@ + + + + + + + Katsomo + + + + wvt:///moontv/programlist.xsl?srcurl=http://moontv.fi/ohjelmat + + + + wvt:///moontv/rss.xsl?srcurl=http://feeds.feedburner.com/Moontv?format=rss + + + + + + diff --git a/templates/moontv/navigation.xsl b/templates/moontv/navigation.xsl new file mode 100644 index 0000000..4ec54a7 --- /dev/null +++ b/templates/moontv/navigation.xsl @@ -0,0 +1,20 @@ + + + + + + + <xsl:value-of select="//div[@id='content']/h2"/> + + + + wvt:///moontv/description.xsl?srcurl= + wvt:///moontv/video.xsl?srcurl= + + + + + + diff --git a/templates/moontv/programlist.xsl b/templates/moontv/programlist.xsl new file mode 100644 index 0000000..cbea52a --- /dev/null +++ b/templates/moontv/programlist.xsl @@ -0,0 +1,20 @@ + + + + + + + MoonTV ohjelmat + + + + + wvt:///moontv/navigation.xsl?srcurl= + + + + + + diff --git a/templates/moontv/rss.xsl b/templates/moontv/rss.xsl new file mode 100644 index 0000000..bb42d7a --- /dev/null +++ b/templates/moontv/rss.xsl @@ -0,0 +1,28 @@ + + + + + + + + + + wvt:///moontv/description.xsl?srcurl= + + wvt:///moontv/video.xsl?srcurl= + + + + + + + + <xsl:value-of select="/rss/channel/title"/> + + + + + + diff --git a/templates/moontv/service.xml b/templates/moontv/service.xml new file mode 100644 index 0000000..aa1a5bd --- /dev/null +++ b/templates/moontv/service.xml @@ -0,0 +1,7 @@ + + + + MoonTV + wvt:///moontv/mainmenu.xsl?srcurl=http%3A//moontv.fi/ohjelmat + Video service by MoonTV, a Finnish online video channel + diff --git a/templates/moontv/video.xsl b/templates/moontv/video.xsl new file mode 100644 index 0000000..9fa6108 --- /dev/null +++ b/templates/moontv/video.xsl @@ -0,0 +1,15 @@ + + + + + + + + <xsl:value-of select="normalize-space(concat(substring-before(//div[@id='single-entry']/h3, '–'), ' - ' , substring-after(//div[@id='single-entry']/h3, '–')))"/> + + + + + -- cgit v1.2.3