mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-27 23:56:51 +01:00
YoutubeDL: ignore indexes from 'playlist_items' that are not in the list (fixes #5706)
We ignore them instead of failing to match the behaviour of the 'playliststart' parameter.
This commit is contained in:
parent
c4fc559f45
commit
3884dcf313
@ -759,7 +759,9 @@ class YoutubeDL(object):
|
|||||||
if isinstance(ie_entries, list):
|
if isinstance(ie_entries, list):
|
||||||
n_all_entries = len(ie_entries)
|
n_all_entries = len(ie_entries)
|
||||||
if playlistitems:
|
if playlistitems:
|
||||||
entries = [ie_entries[i - 1] for i in playlistitems]
|
entries = [
|
||||||
|
ie_entries[i - 1] for i in playlistitems
|
||||||
|
if -n_all_entries <= i - 1 < n_all_entries]
|
||||||
else:
|
else:
|
||||||
entries = ie_entries[playliststart:playlistend]
|
entries = ie_entries[playliststart:playlistend]
|
||||||
n_entries = len(entries)
|
n_entries = len(entries)
|
||||||
|
Loading…
Reference in New Issue
Block a user