From d67cc9fa7c1c38fa72ed8990965ef0aeebbdb43a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Thu, 6 Feb 2014 19:46:26 +0100 Subject: =?UTF-8?q?[youtube:playlist]=20Recognize=20=E2=80=98top=20tracks?= =?UTF-8?q?=E2=80=99=20urls=20(closes=20#2332)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The list parameter starts with ‘MC’ and can have more characters after it, including dots --- test/test_youtube_lists.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/test_youtube_lists.py') diff --git a/test/test_youtube_lists.py b/test/test_youtube_lists.py index de157f657..c9632ddf6 100644 --- a/test/test_youtube_lists.py +++ b/test/test_youtube_lists.py @@ -117,6 +117,13 @@ class TestYoutubeLists(unittest.TestCase): original_video = entries[0] self.assertEqual(original_video['id'], 'rjFaenf1T-Y') + def test_youtube_toptracks(self): + dl = FakeYDL() + ie = YoutubePlaylistIE(dl) + result = ie.extract('https://www.youtube.com/playlist?list=MCUS') + entries = result['entries'] + self.assertEqual(len(entries), 100) + def test_youtube_toplist(self): dl = FakeYDL() ie = YoutubeTopListIE(dl) -- cgit v1.2.3