Fix playlist error handling

Bug in 7e88d7d78f
This commit is contained in:
pukkandan 2022-06-22 08:39:14 +05:30
parent 885fe351fb
commit 1ac4fd80c8
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
2 changed files with 3 additions and 1 deletions

View file

@ -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' % (

View file

@ -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)