Преглед на файлове

[democracynow] Make description optional (Closes #9115)

Sergey M․ преди 9 години
родител
ревизия
a64c0c9b06
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      youtube_dl/extractor/democracynow.py

+ 1 - 1
youtube_dl/extractor/democracynow.py

@@ -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'),