2016-11-17 11:51:14 -05:00
|
|
|
# coding: utf-8
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from .common import InfoExtractor
|
2016-11-17 11:52:35 -05:00
|
|
|
class TVANouvellesVideosIE(InfoExtractor):
|
|
|
|
_VALID_URL = r'https?://(?:www\.)?tvanouvelles\.ca/videos/(?P<id>[0-9]+)'
|
|
|
|
_BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/1741764581/default_default/index.html?videoId=%s'
|
2016-11-17 11:51:14 -05:00
|
|
|
|
|
|
|
def _real_extract(self, url):
|
|
|
|
video_id = self._match_id(url)
|
2016-11-17 11:52:35 -05:00
|
|
|
return self.url_result(
|
|
|
|
self._BRIGHTCOVE_URL_TEMPLATE % video_id,
|
|
|
|
'BrightcoveNew', video_id)
|