1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-09-28 21:47:09 +02:00

Use fatal=False for m3u8 extraction as per PR suggestion

This commit is contained in:
Sean Ellingham 2024-06-26 01:57:07 +01:00
parent 4f07c29a31
commit 2dffeb5692

View File

@ -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])):
if source_type == 'hls':
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)
self._merge_subtitles(subs, target=subtitles)
else: