mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-18 05:13:19 -05:00
[YoutubeDL] Fix playlist range optimization for --playlist-items (closes #14740)
This commit is contained in:
parent
05dee6c520
commit
5871ebac47
1 changed files with 2 additions and 1 deletions
|
@ -948,7 +948,8 @@ def report_download(num_entries):
|
||||||
report_download(n_entries)
|
report_download(n_entries)
|
||||||
else: # iterable
|
else: # iterable
|
||||||
if playlistitems:
|
if playlistitems:
|
||||||
entries = make_playlistitems_entries(list(ie_entries))
|
entries = make_playlistitems_entries(list(itertools.islice(
|
||||||
|
ie_entries, 0, max(playlistitems))))
|
||||||
else:
|
else:
|
||||||
entries = list(itertools.islice(
|
entries = list(itertools.islice(
|
||||||
ie_entries, playliststart, playlistend))
|
ie_entries, playliststart, playlistend))
|
||||||
|
|
Loading…
Reference in a new issue