-
- clip_info_html = content.get('clipInfoHtml')
- if clip_info_html:
- info['description'] = clean_html(get_element_by_class('desc', clip_info_html))
- upload_date = self._search_regex(
- r'<span[^>]+class="date".*?(\d{4}\.\d{2}\.\d{2})',
- clip_info_html, 'upload date', fatal=False)
- if upload_date:
- info['upload_date'] = upload_date.replace('.', '')
-
+ info.update({
+ 'description': clean_html(current_clip.get('description')),
+ 'timestamp': int_or_none(current_clip.get('firstExposureTime'), 1000),
+ 'duration': parse_duration(current_clip.get('displayPlayTime')),
+ 'like_count': int_or_none(current_clip.get('recommendPoint')),
+ 'age_limit': 19 if current_clip.get('adult') else None,
+ })