2017-04-19 21:43:32 +00:00
|
|
|
# coding: utf-8
|
|
|
|
from __future__ import unicode_literals
|
2017-04-29 17:23:50 +00:00
|
|
|
|
|
|
|
from .brightcove import BrightcoveNewIE
|
2017-04-19 21:43:32 +00:00
|
|
|
from .common import InfoExtractor
|
2017-04-29 17:23:50 +00:00
|
|
|
from ..compat import compat_str
|
|
|
|
from ..utils import (
|
|
|
|
int_or_none,
|
2017-09-15 16:12:19 +00:00
|
|
|
js_to_json,
|
2017-04-29 17:23:50 +00:00
|
|
|
smuggle_url,
|
|
|
|
try_get,
|
|
|
|
)
|
2017-04-19 21:43:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
class NoovoIE(InfoExtractor):
|
2017-04-29 17:23:50 +00:00
|
|
|
_VALID_URL = r'https?://(?:[^/]+\.)?noovo\.ca/videos/(?P<id>[^/]+/[^/?#&]+)'
|
2017-04-19 21:43:32 +00:00
|
|
|
_TESTS = [{
|
2017-04-29 17:23:50 +00:00
|
|
|
# clip
|
2017-04-19 21:43:32 +00:00
|
|
|
'url': 'http://noovo.ca/videos/rpm-plus/chrysler-imperial',
|
|
|
|
'info_dict': {
|
|
|
|
'id': '5386045029001',
|
|
|
|
'ext': 'mp4',
|
|
|
|
'title': 'Chrysler Imperial',
|
|