From f4e3a4e46d012772cea91a783dd1a0b3877b1d84 Mon Sep 17 00:00:00 2001 From: Audrey <45548254+tntmod54321@users.noreply.github.com> Date: Wed, 6 Nov 2024 18:48:55 -0500 Subject: [PATCH] don't fail on m3u8 error make m3u8 HTTP errors non-fatal (424 noticed) --- yt_dlp/extractor/bannedvideo.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/bannedvideo.py b/yt_dlp/extractor/bannedvideo.py index beb3a22c1a..3c662e64e5 100644 --- a/yt_dlp/extractor/bannedvideo.py +++ b/yt_dlp/extractor/bannedvideo.py @@ -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,