diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-02-03 15:19:40 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-02-03 15:19:40 +0100 |
commit | 99877772d08285b1b2743427ddd20440f4f4ded2 (patch) | |
tree | bc05d503c7ec012f00185b9eb45e9cdc360ad3ae /test | |
parent | b0268cb6ce16f54ef23901c860cba6be1e16cf37 (diff) |
[generic] Add support for multiple brightcove URLs (Fixes #2283)
Diffstat (limited to 'test')
-rw-r--r-- | test/test_playlists.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_playlists.py b/test/test_playlists.py index b3ce6f71e..fda2e0112 100644 --- a/test/test_playlists.py +++ b/test/test_playlists.py @@ -34,6 +34,7 @@ from youtube_dl.extractor import ( KhanAcademyIE, EveryonesMixtapeIE, RutubeChannelIE, + GenericIE, ) @@ -229,6 +230,16 @@ class TestPlaylists(unittest.TestCase): self.assertEqual(result['id'], '1409') self.assertTrue(len(result['entries']) >= 34) + def test_multiple_brightcove_videos(self): + # https://github.com/rg3/youtube-dl/issues/2283 + dl = FakeYDL() + ie = GenericIE(dl) + result = ie.extract('http://www.newyorker.com/online/blogs/newsdesk/2014/01/always-never-nuclear-command-and-control.html') + self.assertIsPlaylist(result) + self.assertEqual(result['id'], 'always-never-nuclear-command-and-control') + self.assertEqual(result['title'], 'Always/Never: A Little-Seen Movie About Nuclear Command and Control : The New Yorker') + self.assertEqual(len(result['entries']), 3) + if __name__ == '__main__': unittest.main() |