Skip to content

A feature-rich command-line audio/video downloader

[extractor/common] Improve DASH formats extraction for jwplayer (#9242, #15187)

Sergey M․0d9c48de4f78
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 5b6a09c0b7..a072e9bc9f 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -2404,7 +2404,7 @@ class InfoExtractor(object):
formats.extend(self._extract_m3u8_formats(
source_url, video_id, 'mp4', entry_protocol='m3u8_native',
m3u8_id=m3u8_id, fatal=False))
- elif ext == 'mpd':
+ elif source_type == 'dash' or ext == 'mpd':
formats.extend(self._extract_mpd_formats(
source_url, video_id, mpd_id=mpd_id, fatal=False))
elif ext == 'smil':