[democracynow] Prevent required fields to be None
authorYen Chi Hsuan <yan12125@gmail.com>
Tue, 3 Nov 2015 16:13:00 +0000 (00:13 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Tue, 3 Nov 2015 16:13:00 +0000 (00:13 +0800)
youtube_dl/extractor/democracynow.py

index 72fc75d80cf7fe105d99a7147204bdd12885e4bf..6cd395e1169d8253c589efe3da2d24f1632b0356 100644 (file)
@@ -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,