From: Jaime Marquínez Ferrándiz Date: Wed, 19 Jun 2013 10:51:26 +0000 (+0200) Subject: Merge pull request #887 from anisse/master X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=213b715893ce812b4fb14a79634cf7a132a5f2f5;p=youtube-dl Merge pull request #887 from anisse/master Fetch all entries that are in a youtube playlist Also add a test. --- 213b715893ce812b4fb14a79634cf7a132a5f2f5 diff --cc test/test_youtube_lists.py index b842e6cc1,78657b51c..e8b49ff8e --- a/test/test_youtube_lists.py +++ b/test/test_youtube_lists.py @@@ -104,5 -105,5 +104,11 @@@ class TestYoutubeLists(unittest.TestCas result = ie.extract('https://www.youtube.com/user/TheLinuxFoundation')[0] self.assertTrue(len(result['entries']) >= 320) ++ def test_youtube_safe_search(self): ++ dl = FakeDownloader() ++ ie = YoutubePlaylistIE(dl) ++ result = ie.extract('PLtPgu7CB4gbY9oDN3drwC3cMbJggS7dKl')[0] ++ self.assertEqual(len(result['entries']), 2) ++ if __name__ == '__main__': unittest.main()