diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-22 08:39:14 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-22 08:39:14 +0530 |
commit | 1ac4fd80c87d4e566ae680076e788a63d187199b (patch) | |
tree | 7b78f03a2344768bb1d698c836a2ef6a35704473 | |
parent | 885fe351fbee9f7b5fe52576c8917c0baefebe37 (diff) | |
download | hypervideo-pre-1ac4fd80c87d4e566ae680076e788a63d187199b.tar.lz hypervideo-pre-1ac4fd80c87d4e566ae680076e788a63d187199b.tar.xz hypervideo-pre-1ac4fd80c87d4e566ae680076e788a63d187199b.zip |
Fix playlist error handling
Bug in 7e88d7d78f452ea69f06bbdf23f82e9ad7c3de5e
-rw-r--r-- | yt_dlp/YoutubeDL.py | 2 | ||||
-rw-r--r-- | yt_dlp/utils.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index bd6d0d0c1..29a4e0a72 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -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' % ( diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index dc6894d83..4dfdbd58b 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -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) |