From 6911e11edd581392ca1f0688b78787716ec235e9 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 18 May 2021 17:57:26 +0530 Subject: [PATCH] [test:download] Only extract enough videos for `playlist_mincount` --- test/parameters.json | 1 - test/test_download.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parameters.json b/test/parameters.json index a342e2cac..00402d8a4 100644 --- a/test/parameters.json +++ b/test/parameters.json @@ -19,7 +19,6 @@ "noprogress": false, "outtmpl": "%(id)s.%(ext)s", "password": null, - "playlistend": -1, "playliststart": 1, "prefer_free_formats": false, "quiet": false, diff --git a/test/test_download.py b/test/test_download.py index 5559b4d6f..ed6f73c0c 100644 --- a/test/test_download.py +++ b/test/test_download.py @@ -121,6 +121,7 @@ def generator(test_case, tname): params['outtmpl'] = tname + '_' + params['outtmpl'] if is_playlist and 'playlist' not in test_case: params.setdefault('extract_flat', 'in_playlist') + params.setdefault('playlistend', test_case.get('playlist_mincount')) params.setdefault('skip_download', True) ydl = YoutubeDL(params, auto_init=False)