Skip to content

Commit

Permalink
Fix playlist error handling
Browse files Browse the repository at this point in the history
Bug in 7e88d7d
  • Loading branch information
pukkandan committed Jun 22, 2022
1 parent 885fe35 commit 1ac4fd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/YoutubeDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -1732,7 +1732,7 @@ def __process_playlist(self, ie_result, download):
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' % (
Expand Down
2 changes: 2 additions & 0 deletions yt_dlp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2883,6 +2883,8 @@ def get_requested_items(self):
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)
Expand Down

0 comments on commit 1ac4fd8

Please sign in to comment.