0
0
Fork 0

[mitele] Add support for ooyala videos (closes #12430)

main
Sergey M․ 2017-03-13 22:39:15 +07:00
parent ff9d509d20
commit e313d209c2
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@ from __future__ import unicode_literals
import uuid import uuid
from .common import InfoExtractor from .common import InfoExtractor
from .ooyala import OoyalaIE
from ..compat import ( from ..compat import (
compat_str, compat_str,
compat_urllib_parse_urlencode, compat_urllib_parse_urlencode,
@ -24,6 +25,9 @@ class MiTeleBaseIE(InfoExtractor):
r'(?s)(<ms-video-player.+?</ms-video-player>)', r'(?s)(<ms-video-player.+?</ms-video-player>)',
webpage, 'ms video player')) webpage, 'ms video player'))
video_id = player_data['data-media-id'] video_id = player_data['data-media-id']
if player_data.get('data-cms-id') == 'ooyala':
return self.url_result(
'ooyala:%s' % video_id, ie=OoyalaIE.ie_key(), video_id=video_id)
config_url = compat_urlparse.urljoin(url, player_data['data-config']) config_url = compat_urlparse.urljoin(url, player_data['data-config'])
config = self._download_json( config = self._download_json(
config_url, video_id, 'Downloading config JSON') config_url, video_id, 'Downloading config JSON')