- video_id = video_info.find('slug').text
- title = video_info.find('headline').text
- description = video_info.find('description').text
- duration = parse_duration(video_info.find('length').text)
- timestamp = int_or_none(video_info.find('dateCreated').attrib.get('uts'))
+ video_id = xpath_text(video_info, 'slug')
+ title = xpath_text(video_info, 'headline')
+ description = xpath_text(video_info, 'description')
+ duration = parse_duration(xpath_text(video_info, 'length'))
+ timestamp = int_or_none(xpath_attr(video_info, 'dateCreated', 'uts'))