don't fail on m3u8 error

make m3u8 HTTP errors non-fatal (424 noticed)
This commit is contained in:
Audrey 2024-11-06 18:48:55 -05:00
parent 4041fd0523
commit f4e3a4e46d

View File

@ -254,10 +254,14 @@ def _real_extract(self, url):
'url': video_info.get('directUrl'),
'ext': 'mp4',
}] if url_or_none(video_info.get('directUrl')) else []
print(formats)
if video_info.get('streamUrl') and not re.search(r'\.mp4$', video_info.get('streamUrl') or ''):
formats.extend(self._extract_m3u8_formats(
video_info.get('streamUrl'), video_id, 'mp4',
entry_protocol='m3u8_native', m3u8_id='hls', live=True))
entry_protocol='m3u8_native', m3u8_id='hls',
live=True, fatal=False))
return {
'id': video_id,