aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/democracynow.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-11-04 00:13:00 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-11-04 00:13:00 +0800
commit0aeb9a106e1aad37967e0ee666ed816a7d5eb7c2 (patch)
treef27f921b6c2846c5f73865cebefba4ab5c6ed52c /youtube_dl/extractor/democracynow.py
parentfd8102820c4d14fdb1ff7e090553211717012f67 (diff)
[democracynow] Prevent required fields to be None
Diffstat (limited to 'youtube_dl/extractor/democracynow.py')
-rw-r--r--youtube_dl/extractor/democracynow.py4
1 files changed, 2 insertions, 2 deletions
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,