diff options
author | Antti Ajanki <antti.ajanki@iki.fi> | 2012-06-02 09:54:03 +0300 |
---|---|---|
committer | Antti Ajanki <antti.ajanki@iki.fi> | 2012-06-02 09:54:03 +0300 |
commit | 2adcf3b5d24ea3c39cd5777570c94cf19243f61d (patch) | |
tree | c73c825001bbc7e978b54bd3cfc29213fe856f55 | |
parent | 926338d8fb01c3ba0ae238dcdda987340f2f7c94 (diff) | |
download | vdr-plugin-webvideo-2adcf3b5d24ea3c39cd5777570c94cf19243f61d.tar.gz vdr-plugin-webvideo-2adcf3b5d24ea3c39cd5777570c94cf19243f61d.tar.bz2 |
Fix MoonTV
-rw-r--r-- | templates/moontv.fi/description.xsl | 8 | ||||
-rw-r--r-- | templates/moontv.fi/videopage.xsl | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/templates/moontv.fi/description.xsl b/templates/moontv.fi/description.xsl index 6665f7f..264284d 100644 --- a/templates/moontv.fi/description.xsl +++ b/templates/moontv.fi/description.xsl @@ -5,13 +5,9 @@ <xsl:template match="/"> <wvmenu> - <title><xsl:value-of select="normalize-space(concat(substring-before(//div[@id='single-entry']/h3, '–'), ' - ' , substring-after(//div[@id='single-entry']/h3, '–')))"/></title> + <title><xsl:value-of select="normalize-space(/html/head/meta[@property='og:title']/@content)"/></title> <textarea> - <label><xsl:value-of select="//div[@id='single-entry']/p"/></label> - </textarea> - <textarea> - <!-- Julkaistu --> - <label>Julkaistu: <xsl:value-of select="//div[@id='single-entry']/div[@class='entry-footer']/p"/></label> + <label><xsl:value-of select="normalize-space(/html/head/meta[@property='og:description']/@content)"/></label> </textarea> </wvmenu> </xsl:template> diff --git a/templates/moontv.fi/videopage.xsl b/templates/moontv.fi/videopage.xsl index 9fa6108..32bfab2 100644 --- a/templates/moontv.fi/videopage.xsl +++ b/templates/moontv.fi/videopage.xsl @@ -7,8 +7,8 @@ <xsl:template match="/"> <mediaurl> <!-- Jakson/ohjelman nimi --> - <title><xsl:value-of select="normalize-space(concat(substring-before(//div[@id='single-entry']/h3, '–'), ' - ' , substring-after(//div[@id='single-entry']/h3, '–')))"/></title> - <url priority="50"><xsl:value-of select='substring-before(substring-after(//div[@id="single-entry"]/script, "file','"), "'")'/></url> + <title><xsl:value-of select="normalize-space(/html/head/meta[@property='og:title']/@content)"/></title> + <url priority="50"><xsl:value-of select="substring-before(substring-after(/html/head/meta[@property='og:video']/@content, 'file='), '&')"/></url> </mediaurl> </xsl:template> |