瀏覽代碼

[condenast] Make _search_json_ld call non fatal

Sergey M․ 9 年之前
父節點
當前提交
1e7f602e2a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/condenast.py

+ 2 - 1
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,