aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/makerschannel.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2018-05-16 19:11:48 +0100
committerRemita Amine <remitamine@gmail.com>2018-05-16 19:11:48 +0100
commit1306f5ed726b9f8778a5cc0586436b555f64c2ff (patch)
tree568ab16df7b81f3af572f499f6e1d4cc4604af96 /youtube_dl/extractor/makerschannel.py
parent58a68d8fdae5358273ee52d05d77fe42094e128e (diff)
[mychannels] add support for mychannels.com(closes #15334)
Diffstat (limited to 'youtube_dl/extractor/makerschannel.py')
-rw-r--r--youtube_dl/extractor/makerschannel.py40
1 files changed, 0 insertions, 40 deletions
diff --git a/youtube_dl/extractor/makerschannel.py b/youtube_dl/extractor/makerschannel.py
deleted file mode 100644
index f5d00e61d..000000000
--- a/youtube_dl/extractor/makerschannel.py
+++ /dev/null
@@ -1,40 +0,0 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
-import re
-
-from .common import InfoExtractor
-
-
-class MakersChannelIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?makerschannel\.com/.*(?P<id_type>video|production)_id=(?P<id>[0-9]+)'
- _TEST = {
- 'url': 'http://makerschannel.com/en/zoomin/community-highlights?video_id=849',
- 'md5': '624a512c6969236b5967bf9286345ad1',
- 'info_dict': {
- 'id': '849',
- 'ext': 'mp4',
- 'title': 'Landing a bus on a plane is an epic win',
- 'uploader': 'ZoomIn',
- 'description': 'md5:cd9cca2ea7b69b78be81d07020c97139',
- }
- }
-
- def _real_extract(self, url):
- id_type, url_id = re.match(self._VALID_URL, url).groups()
- webpage = self._download_webpage(url, url_id)
- video_data = self._html_search_regex(r'<div([^>]+data-%s-id="%s"[^>]+)>' % (id_type, url_id), webpage, 'video data')
-
- def extract_data_val(attr, fatal=False):
- return self._html_search_regex(r'data-%s\s*=\s*"([^"]+)"' % attr, video_data, attr, fatal=fatal)
- minoto_id = self._search_regex(r'/id/([a-zA-Z0-9]+)', extract_data_val('video-src', True), 'minoto id')
-
- return {
- '_type': 'url_transparent',
- 'url': 'minoto:%s' % minoto_id,
- 'id': extract_data_val('video-id', True),
- 'title': extract_data_val('title', True),
- 'description': extract_data_val('description'),
- 'thumbnail': extract_data_val('image'),
- 'uploader': extract_data_val('channel'),
- }