1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 04:37:55 +08:00

[extractor/common] Not all video_data have "title"

This commit is contained in:
ha shao 2017-03-10 17:06:00 +08:00
parent 0e7f9a9b48
commit 9a061fc8ac

View File

@ -2218,7 +2218,7 @@ class InfoExtractor(object):
entries.append({ entries.append({
'id': this_video_id, 'id': this_video_id,
'title': video_data['title'] if require_title else video_data.get('title'), 'title': video_data.get('title', '') if require_title else '',
'description': video_data.get('description'), 'description': video_data.get('description'),
'thumbnail': self._proto_relative_url(video_data.get('image')), 'thumbnail': self._proto_relative_url(video_data.get('image')),
'timestamp': int_or_none(video_data.get('pubdate')), 'timestamp': int_or_none(video_data.get('pubdate')),