From 1a0cf3ced4a8388cc77e504678159893cf1b1308 Mon Sep 17 00:00:00 2001 From: jakeogh Date: Tue, 14 May 2024 17:53:31 -0700 Subject: [PATCH] fix test for None --- yt_dlp/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index f1877b9f3..dc9bee955 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -3447,7 +3447,7 @@ def extract_thread(contents, entity_payloads): comment_thread_renderer = try_get(content, lambda x: x['commentThreadRenderer']) # old comment format - if entity_payloads is None: + if not entity_payloads: comment_renderer = get_first( (comment_thread_renderer, content), [['commentRenderer', ('comment', 'commentRenderer')]], expected_type=dict, default={})