diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-06-30 23:06:13 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-06-30 23:06:13 +0700 |
commit | eafa643715c0989dff927c9a44e837ca62247b4e (patch) | |
tree | db189bd002cfd21fe7db793c5c116505b9f67eec /youtube_dl/extractor/meta.py | |
parent | 049da7cb6cc7d6b47020480fa780907be265b9cf (diff) |
[meta] Make duration and description optional
For iframe URLs
Diffstat (limited to 'youtube_dl/extractor/meta.py')
-rw-r--r-- | youtube_dl/extractor/meta.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/meta.py b/youtube_dl/extractor/meta.py index 2ca7092e5..2e2db5620 100644 --- a/youtube_dl/extractor/meta.py +++ b/youtube_dl/extractor/meta.py @@ -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({ |