mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 06:10:12 +01:00
don't fail on m3u8 error
make m3u8 HTTP errors non-fatal (424 noticed)
This commit is contained in:
parent
4041fd0523
commit
f4e3a4e46d
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user