[BUGFIX] Fix rare case when yt-dlp returns None and is downloaded (#894)

This commit is contained in:
Jesse Bannon 2024-01-10 09:33:03 -08:00 committed by GitHub
parent b9d05c5b8f
commit 00e4cd8541
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,7 @@ class YTDLP:
)
if is_downloaded and is_thumbnail_downloaded:
return entry_dict
return entry_dict or {} # in-case yt-dlp returns None
# Always add check_formats
# See https://github.com/yt-dlp/yt-dlp/issues/502