diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-06-11 08:56:53 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-06-11 08:56:53 +0700 |
commit | 7409af9eb322b0e76a4ae2d713020c45d178fabe (patch) | |
tree | 5648d56520d84adc515f21a05d04e4136245d9ce | |
parent | 4e3637034cf2b3630e6f9c6d34aa0177a8c83950 (diff) |
[msn] Fix formats extraction
-rw-r--r-- | youtube_dl/extractor/msn.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/youtube_dl/extractor/msn.py b/youtube_dl/extractor/msn.py index 1473bcf48..650731fdc 100644 --- a/youtube_dl/extractor/msn.py +++ b/youtube_dl/extractor/msn.py @@ -68,10 +68,6 @@ class MSNIE(InfoExtractor): format_url = file_.get('url') if not format_url: continue - ext = determine_ext(format_url) - if ext == 'ism': - formats.extend(self._extract_ism_formats( - format_url + '/Manifest', display_id, 'mss', fatal=False)) if 'm3u8' in format_url: # m3u8_native should not be used here until # https://github.com/rg3/youtube-dl/issues/9913 is fixed @@ -79,6 +75,9 @@ class MSNIE(InfoExtractor): format_url, display_id, 'mp4', m3u8_id='hls', fatal=False) formats.extend(m3u8_formats) + elif determine_ext(format_url) == 'ism': + formats.extend(self._extract_ism_formats( + format_url + '/Manifest', display_id, 'mss', fatal=False)) else: formats.append({ 'url': format_url, |