- title = traverse_obj(media, (..., 'title', 'text'), get_all=False)
- description = traverse_obj(media, (
- ..., 'creation_story', 'comet_sections', 'message', 'story', 'message', 'text'), get_all=False)
- uploader_data = (traverse_obj(media, (..., 'owner'), get_all=False)
- or traverse_obj(post, (..., 'node', 'actors', ...), get_all=False) or {})
+ title = get_first(media, ('title', 'text'))
+ description = get_first(media, ('creation_story', 'comet_sections', 'message', 'story', 'message', 'text'))
+ uploader_data = get_first(media, 'owner') or get_first(post, ('node', 'actors', ...)) or {}