youtube-dl/youtube_dl/extractor/noovo.py

101 lines
3.4 KiB
Python
Raw Normal View History

2017-04-19 21:43:32 +00:00
# coding: utf-8
from __future__ import unicode_literals
from .brightcove import BrightcoveNewIE
2017-04-19 21:43:32 +00:00
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
int_or_none,
2017-09-15 16:12:19 +00:00
js_to_json,
smuggle_url,
try_get,
)
2017-04-19 21:43:32 +00:00
class NoovoIE(InfoExtractor):
_VALID_URL = r'https?://(?:[^/]+\.)?noovo\.ca/videos/(?P<id>[^/]+/[^/?#&]+)'
2017-04-19 21:43:32 +00:00
_TESTS = [{
# 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',