From 0ef6c935608d2d865e99844f09ef4f2abd812bc5 Mon Sep 17 00:00:00 2001 From: jakeogh Date: Tue, 14 May 2024 19:22:17 -0700 Subject: [PATCH] use traverse_obj for time_text --- 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 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({