Fix playlist error handling

Bug in 7e88d7d78f
pull/1649/head
pukkandan 2 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)) resolved_entries.append((playlist_index, entry))
# TODO: Add auto-generated fields # 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 continue
self.to_screen('[download] Downloading video %s of %s' % ( 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 index in self.parse_playlist_items(playlist_items):
for i, entry in self[index]: for i, entry in self[index]:
yield i, entry yield i, entry
if not entry:
continue
try: try:
# TODO: Add auto-generated fields # TODO: Add auto-generated fields
self.ydl._match_entry(entry, incomplete=True, silent=True) self.ydl._match_entry(entry, incomplete=True, silent=True)

Loading…
Cancel
Save