From: Sergey M․ Date: Fri, 8 Apr 2016 16:15:36 +0000 (+0600) Subject: [democracynow] Make description optional (Closes #9115) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=a64c0c9b06b24085b1332452b5859fe6ac0a26d5;p=youtube-dl [democracynow] Make description optional (Closes #9115) --- diff --git a/youtube_dl/extractor/democracynow.py b/youtube_dl/extractor/democracynow.py index 6cd395e11..4b6d2652a 100644 --- a/youtube_dl/extractor/democracynow.py +++ b/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']+type="text/json"[^>]*>\s*({[^>]+})', webpage, 'json'),