mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 21:33:19 +00:00
fix test for None
This commit is contained in:
parent
f09e66bb3f
commit
1a0cf3ced4
|
@ -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={})
|
||||
|
|
Loading…
Reference in a new issue