]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[condenast] Make _search_json_ld call non fatal
authorSergey M․ <dstftw@gmail.com>
Mon, 8 Aug 2016 15:45:49 +0000 (22:45 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 8 Aug 2016 15:45:49 +0000 (22:45 +0700)
youtube_dl/extractor/condenast.py

index 15fabbb1c4edcdcb9451e2630dd1bc4b54fea2b1..8d8f605980bdf531c49a0c5d5067223d1f41dc4d 100644 (file)
@@ -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,