mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 08:10:36 +01:00
[condenast] Make _search_json_ld call non fatal
This commit is contained in:
parent
522f6c066d
commit
1e7f602e2a
@ -143,7 +143,8 @@ def _extract_video(self, webpage, url_type):
|
|||||||
})
|
})
|
||||||
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user