fix test for None

This commit is contained in:
jakeogh 2024-05-14 17:53:31 -07:00
parent f09e66bb3f
commit 1a0cf3ced4
1 changed files with 1 additions and 1 deletions

View File

@ -3447,7 +3447,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
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={})