logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 73e1ab6125eeea2b07942326cd2f1d6d9adff64e
parent 584715a803eef68f68fbbb8b72a022a699983197
Author: dirkf <fieldhouse@gmx.net>
Date:   Mon,  6 Dec 2021 19:26:33 +0000

[test:download] Only extract enough videos for playlist_mincount

Diffstat:

Mtest/parameters.json1-
Mtest/test_download.py1+
2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/parameters.json b/test/parameters.json @@ -18,7 +18,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 @@ -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)