diff options
author | Remita Amine <remitamine@gmail.com> | 2016-10-19 16:24:43 +0100 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2016-11-02 01:54:45 +0700 |
commit | 639e3b5c9985aacf7c0dc018c211a78161bbafd2 (patch) | |
tree | 8bd8da7f0ee1e19bf4a544a5f7b3480d785ec590 /youtube_dl/extractor/microsoftvirtualacademy.py | |
parent | b2758123c5e759fdb0c7d23d380e4dd9e245cd4a (diff) |
extract ISM formats in some of the extractors
Diffstat (limited to 'youtube_dl/extractor/microsoftvirtualacademy.py')
-rw-r--r-- | youtube_dl/extractor/microsoftvirtualacademy.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/microsoftvirtualacademy.py b/youtube_dl/extractor/microsoftvirtualacademy.py index afd3e98ec..8e0aee0e6 100644 --- a/youtube_dl/extractor/microsoftvirtualacademy.py +++ b/youtube_dl/extractor/microsoftvirtualacademy.py @@ -71,12 +71,15 @@ class MicrosoftVirtualAcademyIE(MicrosoftVirtualAcademyBaseIE): formats = [] for sources in settings.findall(compat_xpath('.//MediaSources')): - if sources.get('videoType') == 'smoothstreaming': - continue + sources_type = sources.get('videoType') for source in sources.findall(compat_xpath('./MediaSource')): video_url = source.text if not video_url or not video_url.startswith('http'): continue + if sources_type == 'smoothstreaming': + formats.extend(self._extract_ism_formats( + video_url, video_id, 'mss', fatal=False)) + continue video_mode = source.get('videoMode') height = int_or_none(self._search_regex( r'^(\d+)[pP]$', video_mode or '', 'height', default=None)) |