1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-15 19:43:30 +01:00

[democracynow] Make description optional (Closes #9115)

This commit is contained in:
Sergey M․ 2016-04-08 22:15:36 +06:00
parent 56019444cb
commit a64c0c9b06

View File

@ -38,7 +38,7 @@ class DemocracynowIE(InfoExtractor):
def _real_extract(self, url): def _real_extract(self, url):
display_id = self._match_id(url) display_id = self._match_id(url)
webpage = self._download_webpage(url, display_id) 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( json_data = self._parse_json(self._search_regex(
r'<script[^>]+type="text/json"[^>]*>\s*({[^>]+})', webpage, 'json'), r'<script[^>]+type="text/json"[^>]*>\s*({[^>]+})', webpage, 'json'),