From 9a061fc8ac831e0f97d5aa912910d2a4913d5f48 Mon Sep 17 00:00:00 2001 From: ha shao Date: Fri, 10 Mar 2017 17:06:00 +0800 Subject: [PATCH] [extractor/common] Not all video_data have "title" --- youtube_dl/extractor/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 78dc5be24..6889f47b5 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -2218,7 +2218,7 @@ class InfoExtractor(object): entries.append({ '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'), 'thumbnail': self._proto_relative_url(video_data.get('image')), 'timestamp': int_or_none(video_data.get('pubdate')),