summaryrefslogtreecommitdiffhomepage
path: root/test/test_youtube_lists.py
diff options
context:
space:
mode:
authorFilippo Valsorda <[email protected]>2013-02-26 19:02:31 +0100
committerFilippo Valsorda <[email protected]>2013-02-26 19:06:41 +0100
commit89de9eb125abd273d50c9c5cc2d2ce80fa8922f3 (patch)
tree86c4dbc3543d07138767277d79ee417507ac18b6 /test/test_youtube_lists.py
parent6324fd1d7494449c168805db8e3f9fa45396367b (diff)
downloadyoutube-dl-89de9eb125abd273d50c9c5cc2d2ce80fa8922f3.tar.gz
youtube-dl-89de9eb125abd273d50c9c5cc2d2ce80fa8922f3.zip
Modified Youtube video/playlist matching; fixes #668; fixes #585
Diffstat (limited to 'test/test_youtube_lists.py')
-rw-r--r--test/test_youtube_lists.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_youtube_lists.py b/test/test_youtube_lists.py
index 69b0f4447..7055d5a7a 100644
--- a/test/test_youtube_lists.py
+++ b/test/test_youtube_lists.py
@@ -41,6 +41,18 @@ class TestYoutubeLists(unittest.TestCase):
self.assertEqual(map(lambda x: YoutubeIE()._extract_id(x[0]), DL.result),
[ 'bV9L5Ht9LgY', 'FXxLjLQi3Fg', 'tU3Bgo5qJZE' ])
+ #661
+ DL = FakeDownloader()
+ IE = YoutubePlaylistIE(DL)
+ IE.extract('PLMCmkNmxw6Z9eduM7BZjSEh7HiU543Ig0')
+ self.assertTrue(len(DL.result) > 20)
+
+ #673
+ DL = FakeDownloader()
+ IE = YoutubePlaylistIE(DL)
+ IE.extract('PLBB231211A4F62143')
+ self.assertTrue(len(DL.result) > 40)
+
def test_youtube_playlist_long(self):
DL = FakeDownloader()
IE = YoutubePlaylistIE(DL)
@@ -48,6 +60,7 @@ class TestYoutubeLists(unittest.TestCase):
self.assertTrue(len(DL.result) >= 799)
def test_youtube_playlist_with_deleted(self):
+ #651
DL = FakeDownloader()
IE = YoutubePlaylistIE(DL)
IE.extract('https://www.youtube.com/playlist?list=PLwP_SiAcdui0KVebT0mU9Apz359a4ubsC')