]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[extractor/common] Improve DASH formats extraction for jwplayer (#9242, #15187)
authorSergey M․ <dstftw@gmail.com>
Sun, 21 Jan 2018 10:42:48 +0000 (17:42 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 21 Jan 2018 10:42:48 +0000 (17:42 +0700)
youtube_dl/extractor/common.py

index 5b6a09c0b7f732ef5e9361775e42719af0deb8b7..a072e9bc9fb94ded50d6c85de0567064683f0e83 100644 (file)
@@ -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':