diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index eb1ab3a72..38388b835 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -3311,8 +3311,10 @@ def _extract_comment(self, view_model, entities, parent=None): comment_entity_payload = get_first(entities, ('payload', 'commentEntityPayload', {dict})) if not (comment_id := traverse_obj(comment_entity_payload, ('properties', 'commentId', {str}))): return + toolbar_entity_payload = get_first(entities, ('payload', 'engagementToolbarStateEntityPayload', {dict})) time_text = traverse_obj(comment_entity_payload, ('properties', 'publishedTime', {str})) or '' + return { 'id': comment_id, 'parent': parent or 'root',