summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAntti Ajanki <antti.ajanki@iki.fi>2012-01-29 15:52:41 +0200
committerAntti Ajanki <antti.ajanki@iki.fi>2012-01-29 15:52:41 +0200
commitc5c8695ff8615e4517300d234eedb6824bea4850 (patch)
tree1d5de2522ae7f3bb26bd5e07cfefa2ed7a8080bc /templates
parenta930faf82b35e77b81a4e61175ebd08f4007a8c7 (diff)
downloadvdr-plugin-webvideo-c5c8695ff8615e4517300d234eedb6824bea4850.tar.gz
vdr-plugin-webvideo-c5c8695ff8615e4517300d234eedb6824bea4850.tar.bz2
Removed SubTV
Diffstat (limited to 'templates')
-rw-r--r--templates/www.sub.fi/description.xsl32
-rw-r--r--templates/www.sub.fi/mainmenu.xsl21
-rw-r--r--templates/www.sub.fi/navigation.xsl42
-rw-r--r--templates/www.sub.fi/service.xml7
-rw-r--r--templates/www.sub.fi/video.xsl24
-rw-r--r--templates/www.sub.fi/videopage.xsl16
6 files changed, 0 insertions, 142 deletions
diff --git a/templates/www.sub.fi/description.xsl b/templates/www.sub.fi/description.xsl
deleted file mode 100644
index 9aeacf0..0000000
--- a/templates/www.sub.fi/description.xsl
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:str="http://exslt.org/strings"
- exclude-result-prefixes="str">
-
-<xsl:param name="title"/>
-<xsl:param name="desc"/>
-<xsl:param name="pubdate"/>
-<xsl:param name="pid"/>
-
-<xsl:template match="/">
-<wvmenu>
- <title><xsl:value-of select="$title"/></title>
-
- <textarea>
- <label><xsl:value-of select="$desc"/></label>
- </textarea>
-
- <textarea>
- <label><xsl:value-of select="$pubdate"/></label>
- </textarea>
-
- <link>
- <label>Lataa</label>
- <stream>wvt:///www.sub.fi/video.xsl?param=pid,<xsl:value-of select="$pid"/>&amp;param=title,<xsl:value-of select="str:encode-uri($title, true())"/></stream>
- </link>
-</wvmenu>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/templates/www.sub.fi/mainmenu.xsl b/templates/www.sub.fi/mainmenu.xsl
deleted file mode 100644
index c865ae0..0000000
--- a/templates/www.sub.fi/mainmenu.xsl
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:str="http://exslt.org/strings"
- exclude-result-prefixes="str">
-
-<xsl:template match="/">
-<wvmenu>
- <title>Subin netti-TV</title>
-
- <xsl:for-each select="//div[@class='netissakaikki']/ul/li/a">
- <link>
- <label><xsl:value-of select="."/></label>
- <ref>wvt:///www.sub.fi/navigation.xsl?srcurl=<xsl:value-of select="str:encode-uri(@href, true())"/></ref>
- </link>
- </xsl:for-each>
-</wvmenu>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/templates/www.sub.fi/navigation.xsl b/templates/www.sub.fi/navigation.xsl
deleted file mode 100644
index 274355f..0000000
--- a/templates/www.sub.fi/navigation.xsl
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:str="http://exslt.org/strings"
- exclude-result-prefixes="str">
-
-<xsl:param name="docurl"/>
-<xsl:variable name="programname" select="id('page')/div[@class='ohjelma_yla ohjelmanavi']/h1"/>
-
-<xsl:template match="li">
- <xsl:variable name="progId" select="substring-after(div[@class='outerwrap']//a/@href, '?')"/>
- <xsl:variable name="title" select="concat($programname, ' - ', normalize-space(.//h5))"/>
-
- <xsl:if test="$progId">
- <link>
- <label><xsl:value-of select="normalize-space(.//h5)"/></label>
- <stream>wvt:///www.sub.fi/video.xsl?srcurl=<xsl:value-of select="str:encode-uri($docurl, true())"/>&amp;param=pid,<xsl:value-of select="$progId"/>&amp;param=title,<xsl:value-of select="str:encode-uri($title, true())"/></stream>
- <ref>wvt:///www.sub.fi/description.xsl?param=title,<xsl:value-of select="str:encode-uri($title, true())"/>&amp;param=desc,<xsl:value-of select="str:encode-uri(.//span[@class='verho_content']/div, true())"/>&amp;param=pubdate,<xsl:value-of select="str:encode-uri(p[@class='julkaistu'], true())"/>&amp;param=pid,<xsl:value-of select="$progId"/></ref>
- </link>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="/">
-<wvmenu>
- <title><xsl:value-of select="$programname"/></title>
-
- <xsl:choose>
- <xsl:when test="id('uusimmat')/li">
- <xsl:apply-templates select="id('uusimmat')/li"/>
- </xsl:when>
- <xsl:otherwise>
- <textarea>
- <label>Ei jaksoja</label>
- </textarea>
- </xsl:otherwise>
- </xsl:choose>
-
-</wvmenu>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/templates/www.sub.fi/service.xml b/templates/www.sub.fi/service.xml
deleted file mode 100644
index 432855f..0000000
--- a/templates/www.sub.fi/service.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<service>
- <title>Subtv</title>
- <ref>wvt:///www.sub.fi/mainmenu.xsl?srcurl=http%3A//www.sub.fi/katsonetista/</ref>
- <description>Sub is the third biggest commercial tv channel in Finland.</description>
-</service>
diff --git a/templates/www.sub.fi/video.xsl b/templates/www.sub.fi/video.xsl
deleted file mode 100644
index 4448905..0000000
--- a/templates/www.sub.fi/video.xsl
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-<xsl:param name="title"/>
-<xsl:param name="pid"/>
-
-<xsl:template name="mediaurl">
-<xsl:param name="title"/>
-<xsl:param name="pid"/>
-<mediaurl>
- <title><xsl:value-of select="$title"/></title>
- <url><xsl:value-of select="concat('http://www.katsomo.fi/metafile.asx?p=', $pid, '&amp;bw=800')"/></url>
-</mediaurl>
-</xsl:template>
-
-<xsl:template match="/">
- <xsl:call-template name="mediaurl">
- <xsl:with-param name="title" select="$title"/>
- <xsl:with-param name="pid" select="$pid"/>
- </xsl:call-template>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/templates/www.sub.fi/videopage.xsl b/templates/www.sub.fi/videopage.xsl
deleted file mode 100644
index 11cd0ef..0000000
--- a/templates/www.sub.fi/videopage.xsl
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-<xsl:import href="video.xsl"/>
-
-<xsl:param name="docurl"/>
-
-<xsl:template match="/">
- <xsl:call-template name="mediaurl">
- <xsl:with-param name="title" select="/html/head/title"/>
- <xsl:with-param name="pid" select="substring-after($docurl, '?')"/>
- </xsl:call-template>
-</xsl:template>
-
-</xsl:stylesheet>