]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/outsidetv.py
New upstream version 2019.01.16
[youtubedl] / youtube_dl / extractor / outsidetv.py
1 # coding: utf-8
2 from __future__ import unicode_literals
3
4 from .common import InfoExtractor
5
6
7 class OutsideTVIE(InfoExtractor):
8 _VALID_URL = r'https?://(?:www\.)?outsidetv\.com/(?:[^/]+/)*?play/[a-zA-Z0-9]{8}/\d+/\d+/(?P<id>[a-zA-Z0-9]{8})'
9 _TESTS = [{
10 'url': 'http://www.outsidetv.com/category/snow/play/ZjQYboH6/1/10/Hdg0jukV/4',
11 'md5': '192d968fedc10b2f70ec31865ffba0da',
12 'info_dict': {
13 'id': 'Hdg0jukV',
14 'ext': 'mp4',
15 'title': 'Home - Jackson Ep 1 | Arbor Snowboards',
16 'description': 'md5:41a12e94f3db3ca253b04bb1e8d8f4cd',
17 'upload_date': '20181225',
18 'timestamp': 1545742800,
19 }
20 }, {
21 'url': 'http://www.outsidetv.com/home/play/ZjQYboH6/1/10/Hdg0jukV/4',
22 'only_matching': True,
23 }]
24
25 def _real_extract(self, url):
26 jw_media_id = self._match_id(url)
27 return self.url_result(
28 'jwplatform:' + jw_media_id, 'JWPlatform', jw_media_id)