aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_download.py
diff options
context:
space:
mode:
authorAlex Karabanov <lksj@yandex.ru>2022-10-25 14:20:48 +0400
committerGitHub <noreply@github.com>2022-10-25 15:50:48 +0530
commitc9bd65185c0b3b490d0353e139d5484c93bd9774 (patch)
treed2d6911b1d8547abec219172be1b575a768615e8 /test/test_download.py
parentc66ed4e2e5b1a904687120afda0003b77d326c22 (diff)
downloadhypervideo-pre-c9bd65185c0b3b490d0353e139d5484c93bd9774.tar.lz
hypervideo-pre-c9bd65185c0b3b490d0353e139d5484c93bd9774.tar.xz
hypervideo-pre-c9bd65185c0b3b490d0353e139d5484c93bd9774.zip
[extractor/zenyandex] Fix extractors (#3750, #5268)
Closes #3736 Authored by: lksj, puc9, pukkandan Co-authored-by: puc9 <51006296+puc9@users.noreply.github.com>
Diffstat (limited to 'test/test_download.py')
-rwxr-xr-xtest/test_download.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_download.py b/test/test_download.py
index ee53efa1c..7ee8c7c43 100755
--- a/test/test_download.py
+++ b/test/test_download.py
@@ -122,7 +122,8 @@ 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('playlistend', test_case.get(
+ 'playlist_mincount', test_case.get('playlist_count', -2) + 1))
params.setdefault('skip_download', True)
ydl = YoutubeDL(params, auto_init=False)