From b27b9f78c71761dc4b9df224c29ab6a11776575a Mon Sep 17 00:00:00 2001 From: Antti Ajanki Date: Thu, 13 Sep 2012 22:37:33 +0300 Subject: ruutu.fi fixes --- templates/www.ruutu.fi/description.xsl | 28 +++++---- templates/www.ruutu.fi/mainmenu.xsl | 6 +- templates/www.ruutu.fi/mostviewed.xsl | 18 ++++++ templates/www.ruutu.fi/program.xsl | 106 +++++++-------------------------- templates/www.ruutu.fi/recent.xsl | 18 ++++++ templates/www.ruutu.fi/series.xsl | 15 ++--- templates/www.ruutu.fi/video.xsl | 2 +- templates/www.ruutu.fi/videopage.xsl | 6 +- 8 files changed, 84 insertions(+), 115 deletions(-) create mode 100644 templates/www.ruutu.fi/mostviewed.xsl create mode 100644 templates/www.ruutu.fi/recent.xsl diff --git a/templates/www.ruutu.fi/description.xsl b/templates/www.ruutu.fi/description.xsl index aa5326d..aed48c4 100644 --- a/templates/www.ruutu.fi/description.xsl +++ b/templates/www.ruutu.fi/description.xsl @@ -20,30 +20,32 @@ - <xsl:value-of select="/Playerdata/Behavior/Program/@program_name"/> + <xsl:value-of select="normalize-space(//h1[@class='node-title'])"/> - - - + + + - wvt:///www.ruutu.fi/video.xsl?srcurl= + wvt:///www.ruutu.fi/videopage.xsl?srcurl= diff --git a/templates/www.ruutu.fi/mainmenu.xsl b/templates/www.ruutu.fi/mainmenu.xsl index a8b051b..8261fc1 100644 --- a/templates/www.ruutu.fi/mainmenu.xsl +++ b/templates/www.ruutu.fi/mainmenu.xsl @@ -16,17 +16,17 @@ - wvt:///www.ruutu.fi/series.xsl?srcurl=http://www.ruutu.fi/ajax/media_get_netti_tv_series_list/all/false&postprocess=json2xml + wvt:///www.ruutu.fi/series.xsl?srcurl=http://www.ruutu.fi/ajax/series-navi - wvt:///www.ruutu.fi/program.xsl?srcurl=http://www.ruutu.fi/ajax/media_get_nettitv_media/all/video_episode/__/latestdesc/0/25/true/__&postprocess=json2xml + wvt:///www.ruutu.fi/recent.xsl?srcurl=http://www.ruutu.fi/etusivu - wvt:///www.ruutu.fi/program.xsl?srcurl=http://www.ruutu.fi/ajax/media_get_nettitv_media/all/video_episode/__/most_watched/0/25/true/__&postprocess=json2xml + wvt:///www.ruutu.fi/mostviewed.xsl?srcurl=http://www.ruutu.fi/etusivu diff --git a/templates/www.ruutu.fi/mostviewed.xsl b/templates/www.ruutu.fi/mostviewed.xsl new file mode 100644 index 0000000..621ea8a --- /dev/null +++ b/templates/www.ruutu.fi/mostviewed.xsl @@ -0,0 +1,18 @@ + + + + + + + + + Ruutu.fi - Katsotuimmat + + + + + + diff --git a/templates/www.ruutu.fi/program.xsl b/templates/www.ruutu.fi/program.xsl index fd5c9c0..37b1611 100644 --- a/templates/www.ruutu.fi/program.xsl +++ b/templates/www.ruutu.fi/program.xsl @@ -7,112 +7,46 @@ - - - - - - - - - - - - - - + - - 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:///www.ruutu.fi/description.xsl?srcurl= - wvt:///www.ruutu.fi/video.xsl?srcurl= + wvt:///www.ruutu.fi/description.xsl?srcurl= + wvt:///www.ruutu.fi/videopage.xsl?srcurl= - - - - - Ruutu.fi + <xsl:value-of select="//h1[@class='node-title']"/> - + - - video_episode - - - video + - - + + + + - diff --git a/templates/www.ruutu.fi/recent.xsl b/templates/www.ruutu.fi/recent.xsl new file mode 100644 index 0000000..5101cf5 --- /dev/null +++ b/templates/www.ruutu.fi/recent.xsl @@ -0,0 +1,18 @@ + + + + + + + + + Ruutu.fi - Uusimmat + + + + + + diff --git a/templates/www.ruutu.fi/series.xsl b/templates/www.ruutu.fi/series.xsl index 217d8be..4bf5cda 100644 --- a/templates/www.ruutu.fi/series.xsl +++ b/templates/www.ruutu.fi/series.xsl @@ -7,21 +7,18 @@ - - - - - wvt:///www.ruutu.fi/program.xsl?srcurl=http://www.ruutu.fi/ajax/media_get_nettitv_video/all/video_episode//latestdesc/0/25/true/__&postprocess=json2xml - - - + + + + wvt:///www.ruutu.fi/program.xsl?srcurl= + Kaikki sarjat - + diff --git a/templates/www.ruutu.fi/video.xsl b/templates/www.ruutu.fi/video.xsl index 55fa9a5..f813751 100644 --- a/templates/www.ruutu.fi/video.xsl +++ b/templates/www.ruutu.fi/video.xsl @@ -7,7 +7,7 @@ - <xsl:value-of select="concat(/Playerdata/Behavior/Program/@program_name, ' ', /Playerdata/Behavior/Program/@episode_name)"/> + <xsl:value-of select="normalize-space(concat(/Playerdata/Behavior/Program/@program_name, ' ', /Playerdata/Behavior/Program/@episode_name))"/> - - - http://www.nelonen.fi/utils/video_config/?q=/&site=www.ruutu.fi&ageCheckURL=http://sso.nelonenmedia.fi/ajax/check_age/&current_page=http://www.ruutu.fi/video + + + http://crossbow.nelonenmedia.fi/mxmlc?type=&id=&site=www.ruutu.fi&gRVBR=0 -- cgit v1.2.3