From 1ac4fd80c87d4e566ae680076e788a63d187199b Mon Sep 17 00:00:00 2001 From: pukkandan Date: Wed, 22 Jun 2022 08:39:14 +0530 Subject: [PATCH] Fix playlist error handling Bug in 7e88d7d78f452ea69f06bbdf23f82e9ad7c3de5e --- yt_dlp/YoutubeDL.py | 2 +- yt_dlp/utils.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index bd6d0d0c1a..29a4e0a72d 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -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' % ( diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index dc6894d83d..4dfdbd58bc 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -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)