]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[democracynow] Make description optional (Closes #9115)
authorSergey M․ <dstftw@gmail.com>
Fri, 8 Apr 2016 16:15:36 +0000 (22:15 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 8 Apr 2016 16:15:36 +0000 (22:15 +0600)
youtube_dl/extractor/democracynow.py

index 6cd395e1169d8253c589efe3da2d24f1632b0356..4b6d2652ab4694e6b77ca26cdef5cf0980d3048a 100644 (file)
@@ -38,7 +38,7 @@ class DemocracynowIE(InfoExtractor):
     def _real_extract(self, url):
         display_id = self._match_id(url)
         webpage = self._download_webpage(url, display_id)
-        description = self._og_search_description(webpage)
+        description = self._og_search_description(webpage, default=None)
 
         json_data = self._parse_json(self._search_regex(
             r'<script[^>]+type="text/json"[^>]*>\s*({[^>]+})', webpage, 'json'),