aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-08-08 22:45:49 +0700
committerSergey M․ <dstftw@gmail.com>2016-08-08 22:45:49 +0700
commit1e7f602e2ac27bac266cde4c67b31f59510a91f5 (patch)
tree800f6131abab6b607ba346dbb7defb24fea90c3e /youtube_dl/extractor
parent522f6c066da93b6baec3399b7098556e5ec55f43 (diff)
[condenast] Make _search_json_ld call non fatal
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/condenast.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/condenast.py b/youtube_dl/extractor/condenast.py
index 15fabbb1c..8d8f60598 100644
--- a/youtube_dl/extractor/condenast.py
+++ b/youtube_dl/extractor/condenast.py
@@ -143,7 +143,8 @@ class CondeNastIE(InfoExtractor):
})
self._sort_formats(formats)
- info = self._search_json_ld(webpage, video_id) if url_type != 'embed' else {}
+ info = self._search_json_ld(
+ webpage, video_id, fatal=False) if url_type != 'embed' else {}
info.update({
'id': video_id,
'formats': formats,