aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/outsidetv.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2019-01-10 10:54:46 +0100
committerRemita Amine <remitamine@gmail.com>2019-01-10 10:54:46 +0100
commit432aba1c5e68cf8efccb868107785a15617d5109 (patch)
tree39dccf74919e26549353af3759a5872f8a8151af /youtube_dl/extractor/outsidetv.py
parent7c072f00d66f3b3f44d301059443480a5c83d3c0 (diff)
[outsidetv] Add new extractor(closes #18774)
Diffstat (limited to 'youtube_dl/extractor/outsidetv.py')
-rw-r--r--youtube_dl/extractor/outsidetv.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/youtube_dl/extractor/outsidetv.py b/youtube_dl/extractor/outsidetv.py
new file mode 100644
index 000000000..c5333b08c
--- /dev/null
+++ b/youtube_dl/extractor/outsidetv.py
@@ -0,0 +1,28 @@
+# coding: utf-8
+from __future__ import unicode_literals
+
+from .common import InfoExtractor
+
+
+class OutsideTVIE(InfoExtractor):
+ _VALID_URL = r'https?://(?:www\.)?outsidetv\.com/(?:[^/]+/)*?play/[a-zA-Z0-9]{8}/\d+/\d+/(?P<id>[a-zA-Z0-9]{8})'
+ _TESTS = [{
+ 'url': 'http://www.outsidetv.com/category/snow/play/ZjQYboH6/1/10/Hdg0jukV/4',
+ 'md5': '192d968fedc10b2f70ec31865ffba0da',
+ 'info_dict': {
+ 'id': 'Hdg0jukV',
+ 'ext': 'mp4',
+ 'title': 'Home - Jackson Ep 1 | Arbor Snowboards',
+ 'description': 'md5:41a12e94f3db3ca253b04bb1e8d8f4cd',
+ 'upload_date': '20181225',
+ 'timestamp': 1545742800,
+ }
+ }, {
+ 'url': 'http://www.outsidetv.com/home/play/ZjQYboH6/1/10/Hdg0jukV/4',
+ 'only_matching': True,
+ }]
+
+ def _real_extract(self, url):
+ jw_media_id = self._match_id(url)
+ return self.url_result(
+ 'jwplatform:' + jw_media_id, 'JWPlatform', jw_media_id)