diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-11-04 00:13:00 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-11-04 00:13:00 +0800 |
commit | 0aeb9a106e1aad37967e0ee666ed816a7d5eb7c2 (patch) | |
tree | f27f921b6c2846c5f73865cebefba4ab5c6ed52c | |
parent | fd8102820c4d14fdb1ff7e090553211717012f67 (diff) |
[democracynow] Prevent required fields to be None
-rw-r--r-- | youtube_dl/extractor/democracynow.py | 4 |
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, |