summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2013-12-06 21:47:32 +0100
committerJaime Marquínez Ferrándiz <[email protected]>2013-12-06 21:48:44 +0100
commit5cc14c2fd74a721be0effd5bc06a76164a9c97a1 (patch)
treeb3570c4094d3efbe1ec28eda47e763e32cca1a55 /test
parentd349cd22401648e88d57b6dcdd0c8bbb12aaa0d9 (diff)
downloadyoutube-dl-5cc14c2fd74a721be0effd5bc06a76164a9c97a1.tar.gz
youtube-dl-5cc14c2fd74a721be0effd5bc06a76164a9c97a1.zip
[vimeo] Add an extractor for albums (closes #1911)
Diffstat (limited to 'test')
-rw-r--r--test/test_playlists.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_playlists.py b/test/test_playlists.py
index 00c950109..6a5e0b780 100644
--- a/test/test_playlists.py
+++ b/test/test_playlists.py
@@ -16,6 +16,7 @@ from youtube_dl.extractor import (
DailymotionUserIE,
VimeoChannelIE,
VimeoUserIE,
+ VimeoAlbumIE,
UstreamChannelIE,
SoundcloudSetIE,
SoundcloudUserIE,
@@ -65,6 +66,14 @@ class TestPlaylists(unittest.TestCase):
self.assertEqual(result['title'], u'Nki')
self.assertTrue(len(result['entries']) > 65)
+ def test_vimeo_album(self):
+ dl = FakeYDL()
+ ie = VimeoAlbumIE(dl)
+ result = ie.extract('http://vimeo.com/album/2632481')
+ self.assertIsPlaylist(result)
+ self.assertEqual(result['title'], u'Staff Favorites: November 2013')
+ self.assertTrue(len(result['entries']) > 12)
+
def test_ustream_channel(self):
dl = FakeYDL()
ie = UstreamChannelIE(dl)