mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 16:13:35 +01:00
Use fatal=False for m3u8 extraction as per PR suggestion
This commit is contained in:
parent
4f07c29a31
commit
2dffeb5692
@ -18,7 +18,7 @@ def _get_formats_and_subtitles(self, video_source, video_id):
|
|||||||
for source_type, sources in traverse_obj(video_source, ({dict.items}, lambda _, v: v[1][0])):
|
for source_type, sources in traverse_obj(video_source, ({dict.items}, lambda _, v: v[1][0])):
|
||||||
if source_type == 'hls':
|
if source_type == 'hls':
|
||||||
for video_hls in sources:
|
for video_hls in sources:
|
||||||
fmts, subs = self._extract_m3u8_formats_and_subtitles(video_hls.get('url'), video_id, headers=self._HEADERS)
|
fmts, subs = self._extract_m3u8_formats_and_subtitles(video_hls.get('url'), video_id, headers=self._HEADERS, fatal=False)
|
||||||
formats.extend(fmts)
|
formats.extend(fmts)
|
||||||
self._merge_subtitles(subs, target=subtitles)
|
self._merge_subtitles(subs, target=subtitles)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user