1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[condenast] Make _search_json_ld call non fatal

This commit is contained in:
Sergey M․ 2016-08-08 22:45:49 +07:00
parent 522f6c066d
commit 1e7f602e2a
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -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,