diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index e92907f42..d35f77eda 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -3327,7 +3327,7 @@ def _extract_comment(self, view_model, entities, parent=None): } # Timestamp is an estimate calculated from the current time and time_text - time_text = try_get(comment_entity_payload, lambda x: x['properties']['publishedTime'], str) or '' + time_text = traverse_obj(comment_entity_payload, ('properties', 'publishedTime', {str})) or '' timestamp = self._parse_time_text(time_text) info.update({