From: Yen Chi Hsuan Date: Tue, 3 Nov 2015 16:13:00 +0000 (+0800) Subject: [democracynow] Prevent required fields to be None X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=0aeb9a106e1aad37967e0ee666ed816a7d5eb7c2;p=youtube-dl [democracynow] Prevent required fields to be None --- diff --git a/youtube_dl/extractor/democracynow.py b/youtube_dl/extractor/democracynow.py index 72fc75d80..6cd395e11 100644 --- a/youtube_dl/extractor/democracynow.py +++ b/youtube_dl/extractor/democracynow.py @@ -80,8 +80,8 @@ class DemocracynowIE(InfoExtractor): self._sort_formats(formats) return { - 'id': video_id, - 'title': json_data.get('title'), + 'id': video_id or display_id, + 'title': json_data['title'], 'description': description, 'subtitles': subtitles, 'formats': formats,