1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:57:40 +00:00

[meta] Make duration and description optional

For iframe URLs
This commit is contained in:
Sergey M․ 2016-06-30 23:06:13 +07:00
parent 049da7cb6c
commit eafa643715
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -47,9 +47,10 @@ class METAIE(InfoExtractor):
'id': video_id,
'url': video_url,
'title': uppod_data.get('comment') or self._og_search_title(webpage),
'description': self._og_search_description(webpage),
'description': self._og_search_description(webpage, default=None),
'thumbnail': uppod_data.get('poster') or self._og_search_thumbnail(webpage),
'duration': int_or_none(self._og_search_property('video:duration', webpage)),
'duration': int_or_none(self._og_search_property(
'video:duration', webpage, default=None)),
}
if 'youtube.com/' in video_url:
info.update({