Fix playlist error handling

Bug in 7e88d7d78f
pull/1649/head
pukkandan 3 years ago
parent 885fe351fb
commit 1ac4fd80c8
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

@ -1732,7 +1732,7 @@ class YoutubeDL:
resolved_entries.append((playlist_index, entry))
# TODO: Add auto-generated fields
if self._match_entry(entry, incomplete=True) is not None:
if not entry or self._match_entry(entry, incomplete=True) is not None:
continue
self.to_screen('[download] Downloading video %s of %s' % (

@ -2883,6 +2883,8 @@ class PlaylistEntries:
for index in self.parse_playlist_items(playlist_items):
for i, entry in self[index]:
yield i, entry
if not entry:
continue
try:
# TODO: Add auto-generated fields
self.ydl._match_entry(entry, incomplete=True, silent=True)

Loading…
Cancel
Save