|
@ -71,12 +71,15 @@ class MicrosoftVirtualAcademyIE(MicrosoftVirtualAcademyBaseIE): |
|
|
formats = [] |
|
|
formats = [] |
|
|
|
|
|
|
|
|
for sources in settings.findall(compat_xpath('.//MediaSources')): |
|
|
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')): |
|
|
for source in sources.findall(compat_xpath('./MediaSource')): |
|
|
video_url = source.text |
|
|
video_url = source.text |
|
|
if not video_url or not video_url.startswith('http'): |
|
|
if not video_url or not video_url.startswith('http'): |
|
|
continue |
|
|
continue |
|
|
|
|
|
if sources_type == 'smoothstreaming': |
|
|
|
|
|
formats.extend(self._extract_ism_formats( |
|
|
|
|
|
video_url, video_id, 'mss', fatal=False)) |
|
|
|
|
|
continue |
|
|
video_mode = source.get('videoMode') |
|
|
video_mode = source.get('videoMode') |
|
|
height = int_or_none(self._search_regex( |
|
|
height = int_or_none(self._search_regex( |
|
|
r'^(\d+)[pP]$', video_mode or '', 'height', default=None)) |
|
|
r'^(\d+)[pP]$', video_mode or '', 'height', default=None)) |
|
|