From 926338d8fb01c3ba0ae238dcdda987340f2f7c94 Mon Sep 17 00:00:00 2001 From: Antti Ajanki Date: Sat, 2 Jun 2012 09:36:33 +0300 Subject: Remove broken Vimeo module --- README | 4 +- TODO | 2 - src/unittest/testwebvi.py | 29 -------------- templates/video.google.com/searchresults.xsl | 8 ---- templates/vimeo.com/channels.xsl | 33 --------------- templates/vimeo.com/description.xsl | 60 ---------------------------- templates/vimeo.com/groups.xsl | 33 --------------- templates/vimeo.com/mainmenu.xsl | 32 --------------- templates/vimeo.com/navigation.xsl | 22 ---------- templates/vimeo.com/search.xsl | 31 -------------- templates/vimeo.com/searchresults.xsl | 49 ----------------------- templates/vimeo.com/service.xml | 7 ---- templates/vimeo.com/video.xsl | 22 ---------- templates/vimeo.com/videopage.xsl | 20 ---------- templates/www.vimeo.com/videopage.xsl | 20 ---------- 15 files changed, 1 insertion(+), 371 deletions(-) delete mode 100644 templates/vimeo.com/channels.xsl delete mode 100644 templates/vimeo.com/description.xsl delete mode 100644 templates/vimeo.com/groups.xsl delete mode 100644 templates/vimeo.com/mainmenu.xsl delete mode 100644 templates/vimeo.com/navigation.xsl delete mode 100644 templates/vimeo.com/search.xsl delete mode 100644 templates/vimeo.com/searchresults.xsl delete mode 100644 templates/vimeo.com/service.xml delete mode 100644 templates/vimeo.com/video.xsl delete mode 100644 templates/vimeo.com/videopage.xsl delete mode 100644 templates/www.vimeo.com/videopage.xsl diff --git a/README b/README index eca0626..4b256b3 100644 --- a/README +++ b/README @@ -16,11 +16,10 @@ Supported video sites: * Metacafe * MTV3 Katsomo * ruutu.fi [2] -* Vimeo * YLE Areena [2] * YouTube -[1] Only videos hosted by Google, YouTube, Vimeo +[1] Only videos hosted by Google, YouTube, Metacafe [2] Requires rtmpdump-yle (http://users.tkk.fi/~aajanki/rtmpdump-yle/index.html). @@ -29,7 +28,6 @@ Known problems: * MTV3 Katsomo: often the connection is lost before the video is fully downloaded. -* Vimeo: Streaming does not work. Because of the modular design it is possible to add support for new sites quite easily. See doc/developers.txt for more information. diff --git a/TODO b/TODO index dca011e..b25b315 100644 --- a/TODO +++ b/TODO @@ -15,6 +15,4 @@ when using external downloader process (YLE Areena) Fix support for mplayer plugin -Fix Vimeo search - Kill external downloader process when the player stops mid-stream diff --git a/src/unittest/testwebvi.py b/src/unittest/testwebvi.py index 8f9430d..9d0382d 100644 --- a/src/unittest/testwebvi.py +++ b/src/unittest/testwebvi.py @@ -217,35 +217,6 @@ class TestServiceModules(unittest.TestCase): self.assertNotEqual(resultref, None) self.downloadAndExtractLinks(resultref, 1, 'search result') - def testVimeo(self): - # Category page - ref = self.getServiceReference('../../templates/vimeo.com') - links = self.downloadAndExtractLinks(ref, 2, 'Vimeo main page') - - # The first "Channels" and the second is "Groups" - channelsref = links[0].ref - groupsref = links[1].ref - - # Channels page - links = self.downloadAndExtractLinks(channelsref, 2, 'channels') - - # Navigation page - links = self.downloadAndExtractLinks(links[0].ref, 2, 'channels navigation') - - # 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') - queries, params = self.extractQueryParams(videolink.stream) - self.assertTrue('srcurl' in queries, 'Required parameter missing in video link') - self.checkMediaUrl(videolink.stream) - - # User groups - links = self.downloadAndExtractLinks(groupsref, 2, 'channel list') - - # Navigation page - links = self.downloadAndExtractLinks(links[0].ref, 2, 'groups navigation') - def testYLEAreena(self): # Category page ref = self.getServiceReference('../../templates/areena.yle.fi') diff --git a/templates/video.google.com/searchresults.xsl b/templates/video.google.com/searchresults.xsl index 8bd2146..a65b8a6 100644 --- a/templates/video.google.com/searchresults.xsl +++ b/templates/video.google.com/searchresults.xsl @@ -46,14 +46,6 @@ - - - - wvt:///vimeo.com/video.xsl?srcurl=http://www.vimeo.com/moogaloop/load/clip:&HTTP-header=user-agent,Wget/1.2%20%28linux-gnu%29 - wvt:///vimeo.com/description.xsl?srcurl=http://vimeo.com/api/v2/video/.xml - - - diff --git a/templates/vimeo.com/channels.xsl b/templates/vimeo.com/channels.xsl deleted file mode 100644 index c8b3e18..0000000 --- a/templates/vimeo.com/channels.xsl +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - Vimeo Channels - - - - - wvt:///vimeo.com/navigation.xsl?srcurl=http://vimeo.com/api/v2/channel//videos.xml - - - - - - - - - - - - wvt:///vimeo.com/channels.xsl?srcurl= - - - - - - - diff --git a/templates/vimeo.com/description.xsl b/templates/vimeo.com/description.xsl deleted file mode 100644 index 01dc1bb..0000000 --- a/templates/vimeo.com/description.xsl +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - <xsl:value-of select="/videos/video/title"/> - - - - - - - - - - - - - wvt:///vimeo.com/navigation.xsl?srcurl=http://vimeo.com/api/v2//videos.xml - - - - - wvt:///vimeo.com/video.xsl?srcurl=http://www.vimeo.com/moogaloop/load/clip:&HTTP-header=user-agent,Wget/1.2%20%28linux-gnu%29 - - - - - - diff --git a/templates/vimeo.com/groups.xsl b/templates/vimeo.com/groups.xsl deleted file mode 100644 index 8c955da..0000000 --- a/templates/vimeo.com/groups.xsl +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - Vimeo Groups - - - - - wvt:///vimeo.com/navigation.xsl?srcurl=http://vimeo.com/api/v2/group//videos.xml - - - - - - - - - - - - wvt:///vimeo.com/groups.xsl?srcurl= - - - - - - - diff --git a/templates/vimeo.com/mainmenu.xsl b/templates/vimeo.com/mainmenu.xsl deleted file mode 100644 index bdd4d34..0000000 --- a/templates/vimeo.com/mainmenu.xsl +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - Vimeo - - - - - - - - wvt:///vimeo.com/channels.xsl?srcurl=http://vimeo.com/channels/all - - - - - wvt:///vimeo.com/groups.xsl?srcurl=http://vimeo.com/groups/all - - - - - - diff --git a/templates/vimeo.com/navigation.xsl b/templates/vimeo.com/navigation.xsl deleted file mode 100644 index 9639686..0000000 --- a/templates/vimeo.com/navigation.xsl +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - wvt:///vimeo.com/video.xsl?srcurl=http://www.vimeo.com/moogaloop/load/clip:&HTTP-header=user-agent,Wget/1.2%20%28linux-gnu%29 - wvt:///vimeo.com/description.xsl?srcurl=http://vimeo.com/api/v2/video/.xml - - - - - - Vimeo videos - - - - - - diff --git a/templates/vimeo.com/search.xsl b/templates/vimeo.com/search.xsl deleted file mode 100644 index 386beaa..0000000 --- a/templates/vimeo.com/search.xsl +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - Vimeo Search - - - - - - - - most relevant - newest - most played - most liked - - - - - - - diff --git a/templates/vimeo.com/searchresults.xsl b/templates/vimeo.com/searchresults.xsl deleted file mode 100644 index 1cf8381..0000000 --- a/templates/vimeo.com/searchresults.xsl +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - Search results - - - - - - - - - - - - - - - - - wvt:///vimeo.com/video.xsl?srcurl=http://www.vimeo.com/moogaloop/load/clip:&HTTP-header=user-agent,Wget/1.2%20%28linux-gnu%29 - wvt:///vimeo.com/description.xsl?srcurl=http://vimeo.com/api/v2/video/.xml - - - - - - - - - - - - wvt:///vimeo.com/searchresults.xsl?srcurl=&HTTP-header=cookie,uid%3D0;searchtoken%3D&param=searchtoken, - - - - - - - diff --git a/templates/vimeo.com/service.xml b/templates/vimeo.com/service.xml deleted file mode 100644 index 544ad97..0000000 --- a/templates/vimeo.com/service.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - Vimeo - wvt:///vimeo.com/mainmenu.xsl - Vimeo is a video-centric social networking site - diff --git a/templates/vimeo.com/video.xsl b/templates/vimeo.com/video.xsl deleted file mode 100644 index 7e15eb1..0000000 --- a/templates/vimeo.com/video.xsl +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - <xsl:value-of select="/xml/video/caption"/> - - http://www.vimeo.com/moogaloop/play/clip:///?q=sd - - - - - - - - - - - - diff --git a/templates/vimeo.com/videopage.xsl b/templates/vimeo.com/videopage.xsl deleted file mode 100644 index 251f731..0000000 --- a/templates/vimeo.com/videopage.xsl +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/templates/www.vimeo.com/videopage.xsl b/templates/www.vimeo.com/videopage.xsl deleted file mode 100644 index 39cc3f3..0000000 --- a/templates/www.vimeo.com/videopage.xsl +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3