diff options
author | Filippo Valsorda <filippo.valsorda@gmail.com> | 2013-10-01 10:08:20 -0700 |
---|---|---|
committer | Filippo Valsorda <filippo.valsorda@gmail.com> | 2013-10-01 10:08:20 -0700 |
commit | bd8e5c7ca286418e1e4162d7be6f3a30be581e87 (patch) | |
tree | 70dff0b000092853301cbac841603f19786216c4 /test/test_youtube_lists.py | |
parent | c54283824c72434c31e0dcce1d09fc3259dbcdc0 (diff) | |
parent | 7c61bd36bb172485815288d44e00acb676e8eaff (diff) |
Merge pull request #1531 from rg3/no-playlist
[youtube] implement --no-playlist to only download current video
Diffstat (limited to 'test/test_youtube_lists.py')
-rw-r--r-- | test/test_youtube_lists.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_youtube_lists.py b/test/test_youtube_lists.py index dd9e292b0..53e65816d 100644 --- a/test/test_youtube_lists.py +++ b/test/test_youtube_lists.py @@ -27,6 +27,14 @@ class TestYoutubeLists(unittest.TestCase): ytie_results = [YoutubeIE()._extract_id(url['url']) for url in result['entries']] self.assertEqual(ytie_results, [ 'bV9L5Ht9LgY', 'FXxLjLQi3Fg', 'tU3Bgo5qJZE']) + def test_youtube_playlist_noplaylist(self): + dl = FakeYDL() + dl.params['noplaylist'] = True + ie = YoutubePlaylistIE(dl) + result = ie.extract('https://www.youtube.com/watch?v=FXxLjLQi3Fg&list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re') + self.assertEqual(result['_type'], 'url') + self.assertEqual(YoutubeIE()._extract_id(result['url']), 'FXxLjLQi3Fg') + def test_issue_673(self): dl = FakeYDL() ie = YoutubePlaylistIE(dl) |