Skip to content

Commit

Permalink
[YoutubeDL] Fix playlist range optimization for --playlist-items (clo…
Browse files Browse the repository at this point in the history
…ses #14740)
  • Loading branch information
dstftw committed Nov 13, 2017
1 parent 05dee6c commit 5871eba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_dl/YoutubeDL.py
Expand Up @@ -948,7 +948,8 @@ def report_download(num_entries):
report_download(n_entries)
else: # iterable
if playlistitems:
entries = make_playlistitems_entries(list(ie_entries))
entries = make_playlistitems_entries(list(itertools.islice(
ie_entries, 0, max(playlistitems))))
else:
entries = list(itertools.islice(
ie_entries, playliststart, playlistend))
Expand Down

0 comments on commit 5871eba

Please sign in to comment.