]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/bellmedia.py
2 from __future__
import unicode_literals
6 from .common
import InfoExtractor
9 class BellMediaIE(InfoExtractor
):
10 _VALID_URL
= r
'''(?x)https?://(?:www\.)?
20 investigationdiscovery|
29 )/.*?(?:\b(?:vid(?:eoid)?|clipId)=|-vid|~|%7E|/(?:episode)?)(?P<id>[0-9]{6,})'''
31 'url': 'https://www.bnnbloomberg.ca/video/david-cockfield-s-top-picks~1403070',
32 'md5': '36d3ef559cfe8af8efe15922cd3ce950',
36 'title': 'David Cockfield\'s Top Picks',
37 'description': 'md5:810f7f8c6a83ad5b48677c3f8e5bb2c3',
38 'upload_date': '20180525',
39 'timestamp': 1527288600,
42 'url': 'http://www.thecomedynetwork.ca/video/player?vid=923582',
43 'only_matching': True,
45 'url': 'http://www.tsn.ca/video/expectations-high-for-milos-raonic-at-us-open~939549',
46 'only_matching': True,
48 'url': 'http://www.bnn.ca/video/berman-s-call-part-two-viewer-questions~939654',
49 'only_matching': True,
51 'url': 'http://www.ctv.ca/YourMorning/Video/S1E6-Monday-August-29-2016-vid938009',
52 'only_matching': True,
54 'url': 'http://www.much.com/shows/atmidnight/episode948007/tuesday-september-13-2016',
55 'only_matching': True,
57 'url': 'http://www.much.com/shows/the-almost-impossible-gameshow/928979/episode-6',
58 'only_matching': True,
60 'url': 'http://www.ctv.ca/DCs-Legends-of-Tomorrow/Video/S2E11-Turncoat-vid1051430',
61 'only_matching': True,
63 'url': 'http://www.etalk.ca/video?videoid=663455',
64 'only_matching': True,
66 'url': 'https://www.cp24.com/video?clipId=1982548',
67 'only_matching': True,
70 'thecomedynetwork': 'comedy',
71 'discoveryvelocity': 'discvel',
72 'sciencechannel': 'discsci',
73 'investigationdiscovery': 'invdisc',
74 'animalplanet': 'aniplan',
76 'bnnbloomberg': 'bnn',
77 'marilyn': 'ctv_marilyn',
80 def _real_extract(self
, url
):
81 domain
, video_id
= re
.match(self
._VALID
_URL
, url
).groups()
82 domain
= domain
.split('.')[0]
84 '_type': 'url_transparent',
86 'url': '9c9media:%s_web:%s' % (self
._DOMAINS
.get(domain
, domain
), video_id
),
87 'ie_key': 'NineCNineMedia',