Forráskód Böngészése

[condenast] Make _search_json_ld call non fatal

Sergey M․ 9 éve
szülő
commit
1e7f602e2a
1 módosított fájl, 2 hozzáadás és 1 törlés
  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)
         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({
         info.update({
             'id': video_id,
             'id': video_id,
             'formats': formats,
             'formats': formats,