use traverse_obj for time_text

This commit is contained in:
jakeogh 2024-05-14 19:22:17 -07:00
parent 8d428b42c0
commit 0ef6c93560

View File

@ -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({