mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-06 08:53:49 +00:00
attempt #2 at not treating ddl urls as m3u8
This commit is contained in:
parent
9106506dfe
commit
434bd53b37
@ -254,7 +254,7 @@ class BannedVideoIE(BannedVideoBaseIE):
|
||||
'url': video_info.get('directUrl'),
|
||||
'ext': 'mp4',
|
||||
}] if url_or_none(video_info.get('directUrl')) else []
|
||||
if video_info.get('streamUrl') and not re.search(r'\.mp4$', video_info.get('streamUrl') or ''):
|
||||
if video_info.get('streamUrl') and not video_info.get('streamUrl') == video_info.get('directUrl'):
|
||||
formats.extend(self._extract_m3u8_formats(
|
||||
video_info.get('streamUrl'), video_id, 'mp4',
|
||||
entry_protocol='m3u8_native', m3u8_id='hls',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user