From 00e4cd8541a40dd6dd7b0e9a7386def656c6a6ec Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Wed, 10 Jan 2024 09:33:03 -0800 Subject: [PATCH] [BUGFIX] Fix rare case when yt-dlp returns None and is downloaded (#894) --- src/ytdl_sub/downloaders/ytdlp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ytdl_sub/downloaders/ytdlp.py b/src/ytdl_sub/downloaders/ytdlp.py index 970acb1f..556ef54f 100644 --- a/src/ytdl_sub/downloaders/ytdlp.py +++ b/src/ytdl_sub/downloaders/ytdlp.py @@ -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