Merge pull request #887 from anisse/master
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 19 Jun 2013 10:51:26 +0000 (12:51 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 19 Jun 2013 10:52:44 +0000 (12:52 +0200)
Fetch all entries that are in a youtube playlist

Also add a test.

1  2 
test/test_youtube_lists.py
youtube_dl/InfoExtractors.py

index b842e6cc160b2a1cc06f5e6c71ba103fd9a849bc,78657b51ca43b1776596e612266cb0e8d9a07ebd..e8b49ff8ebe3bd3f74f796888cdc7f27b1ecc386
@@@ -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()
Simple merge