diff options
author | df <[email protected]> | 2021-10-29 03:03:00 +0100 |
---|---|---|
committer | dirkf <[email protected]> | 2022-01-29 20:00:21 +0000 |
commit | 2c2c2bd348b7dce0aad55a6fc37a18c6f9a000e3 (patch) | |
tree | 7825350c98c3ef6b3375dcd1995e3c59d28fc0e2 /test/test_youtube_lists.py | |
parent | 46e0a729b2d4503d8d49433fdddfce726d08261e (diff) | |
download | youtube-dl-2c2c2bd348b7dce0aad55a6fc37a18c6f9a000e3.tar.gz youtube-dl-2c2c2bd348b7dce0aad55a6fc37a18c6f9a000e3.zip |
Fix test_youtube_mix
Diffstat (limited to 'test/test_youtube_lists.py')
-rw-r--r-- | test/test_youtube_lists.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/test_youtube_lists.py b/test/test_youtube_lists.py index e1636a1a6..fae8a950a 100644 --- a/test/test_youtube_lists.py +++ b/test/test_youtube_lists.py @@ -34,12 +34,14 @@ class TestYoutubeLists(unittest.TestCase): def test_youtube_mix(self): dl = FakeYDL() - ie = YoutubePlaylistIE(dl) - result = ie.extract('https://www.youtube.com/watch?v=W01L70IGBgE&index=2&list=RDOQpdSVF_k_w') - entries = result['entries'] + dl.params['format'] = 'best' + ie = YoutubeTabIE(dl) + result = dl.extract_info('https://www.youtube.com/watch?v=uVJ0Il5WvbE&list=PLhQjrBD2T381k8ul4WQ8SQ165XqY149WW', + download=False, ie_key=ie.ie_key(), process=True) + entries = (result or {}).get('entries', [{'id': 'not_found', }]) self.assertTrue(len(entries) >= 50) original_video = entries[0] - self.assertEqual(original_video['id'], 'OQpdSVF_k_w') + self.assertEqual(original_video['id'], 'uVJ0Il5WvbE') def test_youtube_toptracks(self): print('Skipping: The playlist page gives error 500') |