From 2f2186b5418bd591589287242911ef9af27fce16 Mon Sep 17 00:00:00 2001 From: Antti Ajanki Date: Sat, 26 Mar 2011 19:21:20 +0200 Subject: Remove SVT Play module --- README | 4 +- TODO | 2 - src/unittest/testwebvi.py | 19 ------- templates/svtplay.se/categories.xsl | 19 ------- templates/svtplay.se/description.xsl | 41 --------------- templates/svtplay.se/navigation.xsl | 74 ---------------------------- templates/svtplay.se/programmenu.xsl | 56 --------------------- templates/svtplay.se/service.xml | 7 --- templates/svtplay.se/videopage.xsl | 24 --------- templates/video.google.com/searchresults.xsl | 8 --- 10 files changed, 1 insertion(+), 253 deletions(-) delete mode 100644 templates/svtplay.se/categories.xsl delete mode 100644 templates/svtplay.se/description.xsl delete mode 100644 templates/svtplay.se/navigation.xsl delete mode 100644 templates/svtplay.se/programmenu.xsl delete mode 100644 templates/svtplay.se/service.xml delete mode 100644 templates/svtplay.se/videopage.xsl diff --git a/README b/README index b2670a7..3cfbf1d 100644 --- a/README +++ b/README @@ -17,12 +17,11 @@ Supported video sites: * MTV3 Katsomo * ruutu.fi [2] * Subtv -* SVT Play * Vimeo * YLE Areena [2] * YouTube -[1] Only videos hosted by Google, YouTube, Vimeo and SVT +[1] Only videos hosted by Google, YouTube, Vimeo [2] Requires rtmpdump-yle (http://users.tkk.fi/~aajanki/rtmpdump-yle/index.html). Streaming @@ -30,7 +29,6 @@ Supported video sites: Known problems: -SVT Play: not all videos are working MTV3 Katsomo and Subtv: often the connection is lost before the video is fully downloaded. diff --git a/TODO b/TODO index 0e24365..118f2f5 100644 --- a/TODO +++ b/TODO @@ -6,8 +6,6 @@ Show a poster image next to video's name plugin: scrolling does not work on video description pages -SVTPlay: add search - metacafe: fails to find video URL for videos with ID sy-*, cb-* (others?). The videos are probably hosted on some other sites (like yt-* -> youtube). diff --git a/src/unittest/testwebvi.py b/src/unittest/testwebvi.py index 2aaf394..814a1c4 100644 --- a/src/unittest/testwebvi.py +++ b/src/unittest/testwebvi.py @@ -173,25 +173,6 @@ class TestServiceModules(unittest.TestCase): self.assertNotEqual(resultref, None) self.downloadAndExtractLinks(resultref, 1, 'search result') - def testSVTPlay(self): - # Category page - ref = self.getServiceReference('../../templates/svtplay.se') - links = self.downloadAndExtractLinks(ref, 3, 'category') - - # Navigation page - navigationref = links[0].ref - links = self.downloadAndExtractLinks(navigationref, 2, 'navigation') - - # Single program - programref = links[0].ref - links = self.downloadAndExtractLinks(programref, 1, 'program') - - # Video link - videolink = links[0] - self.assertNotEqual(videolink.stream, None, 'No media object in a video link') - self.assertNotEqual(videolink.ref, None, 'No description page in a video link') - self.checkMediaUrl(videolink.stream) - def testMetacafe(self): # Category page ref = self.getServiceReference('../../templates/www.metacafe.com') diff --git a/templates/svtplay.se/categories.xsl b/templates/svtplay.se/categories.xsl deleted file mode 100644 index 751a9e5..0000000 --- a/templates/svtplay.se/categories.xsl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - SVT Play - - - - - wvt:///svtplay.se/navigation.xsl?srcurl= - - - - - - diff --git a/templates/svtplay.se/description.xsl b/templates/svtplay.se/description.xsl deleted file mode 100644 index f3c3ae6..0000000 --- a/templates/svtplay.se/description.xsl +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - <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.se/navigation.xsl b/templates/svtplay.se/navigation.xsl deleted file mode 100644 index c3e43ba..0000000 --- a/templates/svtplay.se/navigation.xsl +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - wvt:///svtplay.se/programmenu.xsl?srcurl= - - - - - - - - - wvt:///svtplay.se/navigation.xsl?srcurl= - - - - - - - wvt:///svtplay.se/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.se/programmenu.xsl b/templates/svtplay.se/programmenu.xsl deleted file mode 100644 index baf88c4..0000000 --- a/templates/svtplay.se/programmenu.xsl +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - wvt:///svtplay.se/description.xsl?srcurl= - wvt:///svtplay.se/videopage.xsl?srcurl= - - - - - - - - - wvt:///svtplay.se/programmenu.xsl?srcurl= - - - - - - - wvt:///svtplay.se/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.se/service.xml b/templates/svtplay.se/service.xml deleted file mode 100644 index 92d2725..0000000 --- a/templates/svtplay.se/service.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - SVT Play - wvt:///svtplay.se/categories.xsl?srcurl=http://svtplay.se/kategorier - Swedish Television, online TV service - diff --git a/templates/svtplay.se/videopage.xsl b/templates/svtplay.se/videopage.xsl deleted file mode 100644 index af6aeb9..0000000 --- a/templates/svtplay.se/videopage.xsl +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - <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/video.google.com/searchresults.xsl b/templates/video.google.com/searchresults.xsl index 806c60e..d1524c7 100644 --- a/templates/video.google.com/searchresults.xsl +++ b/templates/video.google.com/searchresults.xsl @@ -52,14 +52,6 @@ - - - - wvt:///svtplay.se/videopage.xsl?srcurl= - wvt:///svtplay.se/description.xsl?srcurl= - - - -- cgit v1.2.3