aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authordirkf <[email protected]>2022-02-04 04:09:23 +0000
committerdirkf <[email protected]>2022-02-04 04:09:23 +0000
commit7a497f1405ecdcd76c671c7bfaad238d75d01639 (patch)
tree7f25cd29058cfd73ca460bb5aaec123800715678
parent5add3f4373287e6346ca3551239edab549284db3 (diff)
downloadyoutube-dl-7a497f1405ecdcd76c671c7bfaad238d75d01639.tar.gz
youtube-dl-7a497f1405ecdcd76c671c7bfaad238d75d01639.zip
Rework 2c2c2bd with an actual Mix page and realistic playlist size
From https://github.com/ytdl-org/youtube-dl/commit/2c2c2bd348b7dce0aad55a6fc37a18c6f9a000e3#commitcomment-65953545
-rw-r--r--test/test_youtube_lists.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_youtube_lists.py b/test/test_youtube_lists.py
index 07a6b6d06..e0e8891ba 100644
--- a/test/test_youtube_lists.py
+++ b/test/test_youtube_lists.py
@@ -36,12 +36,12 @@ class TestYoutubeLists(unittest.TestCase):
dl = FakeYDL()
dl.params['format'] = 'best'
ie = YoutubeTabIE(dl)
- result = dl.extract_info('https://www.youtube.com/watch?v=uVJ0Il5WvbE&list=PLhQjrBD2T381k8ul4WQ8SQ165XqY149WW',
+ result = dl.extract_info('https://www.youtube.com/watch?v=tyITL_exICo&list=RDCLAK5uy_kLWIr9gv1XLlPbaDS965-Db4TrBoUTxQ8',
download=False, ie_key=ie.ie_key(), process=True)
entries = (result or {}).get('entries', [{'id': 'not_found', }])
- self.assertTrue(len(entries) >= 50)
+ self.assertTrue(len(entries) >= 25)
original_video = entries[0]
- self.assertEqual(original_video['id'], 'uVJ0Il5WvbE')
+ self.assertEqual(original_video['id'], 'tyITL_exICo')
def test_youtube_flat_playlist_extraction(self):
dl = FakeYDL()