]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[test_youtube_lists] Fix TestYoutubeLists.test_youtube_course
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 31 Jan 2016 11:49:54 +0000 (19:49 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sun, 31 Jan 2016 12:12:43 +0000 (20:12 +0800)
Youtube entries are now generators

test/test_youtube_lists.py

index 26aadb34f00e6961c2521ceaa8be1a51fe359a8d..47df0f348d862e4ab455058d00321636123db807 100644 (file)
@@ -34,7 +34,7 @@ class TestYoutubeLists(unittest.TestCase):
         ie = YoutubePlaylistIE(dl)
         # TODO find a > 100 (paginating?) videos course
         result = ie.extract('https://www.youtube.com/course?list=ECUl4u3cNGP61MdtwGTqZA0MreSaDybji8')
-        entries = result['entries']
+        entries = list(result['entries'])
         self.assertEqual(YoutubeIE().extract_id(entries[0]['url']), 'j9WZyLZCBzs')
         self.assertEqual(len(entries), 25)
         self.assertEqual(YoutubeIE().extract_id(entries[-1]['url']), 'rYefUsYuEp0')