]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/mediaite.py
1 from .common
import InfoExtractor
4 class MediaiteIE(InfoExtractor
):
5 _VALID_URL
= r
'https?://(?:www\.)?mediaite.com(?!/category)(?:/[\w-]+){2}'
7 'url': 'https://www.mediaite.com/sports/bill-burr-roasts-nfl-for-promoting-black-lives-matter-while-scheduling-more-games-after-all-the-sht-they-know-about-cte/',
11 'title': 'Bill Burr On NFL And Black Lives Matter',
12 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
13 'thumbnail': 'https://cdn.jwplayer.com/v2/media/vPHKITzy/poster.jpg?width=720',
15 'timestamp': 1631630185,
16 'upload_date': '20210914',
18 'params': {'skip_download': True}
20 'url': 'https://www.mediaite.com/tv/joe-scarborough-goes-off-on-tax-breaks-for-super-wealthy-largest-income-redistribution-scam-in-american-history/',
24 'title': 'Morning Joe-6_16_52 am - 6_21_10 am-2021-09-14.mp4',
25 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
26 'thumbnail': 'https://cdn.jwplayer.com/v2/media/eeFcK4Xm/poster.jpg?width=720',
28 'timestamp': 1631618057,
29 'upload_date': '20210914',
31 'params': {'skip_download': True}
33 'url': 'https://www.mediaite.com/politics/watch-rudy-giuliani-impersonates-queen-elizabeth-calls-mark-milley-an-asshle-in-bizarre-9-11-speech/',
37 'title': 'Giuliani 1',
38 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
39 'thumbnail': 'https://cdn.jwplayer.com/v2/media/EiyiXKcr/poster.jpg?width=720',
41 'timestamp': 1631536476,
42 'upload_date': '20210913',
44 'params': {'skip_download': True}
46 'url': 'https://www.mediaite.com/podcasts/clarissa-ward-says-she-decided-to-become-a-journalist-on-9-11/',
50 'title': 'clarissa-ward-3.mp4',
51 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
52 'thumbnail': 'https://cdn.jwplayer.com/v2/media/TxavoRTx/poster.jpg?width=720',
54 'timestamp': 1631311188,
55 'upload_date': '20210910',
57 'params': {'skip_download': True}
59 'url': 'https://www.mediaite.com/opinion/mainstream-media-ignores-rose-mcgowans-bombshell-allegation-that-newsoms-wife-tried-to-silence-her-on-weinstein/',
63 'title': 'KTTV_09-13-2021_05.34.21',
64 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
65 'thumbnail': 'https://cdn.jwplayer.com/v2/media/sEIWvKR7/poster.jpg?width=720',
67 'timestamp': 1631553328,
68 'upload_date': '20210913',
70 'params': {'skip_download': True}
72 'url': 'https://www.mediaite.com/news/watch-cnbcs-jim-cramer-says-nobody-wants-to-die-getting-infected-by-unvaccinated-coworker-even-for-22-an-hour/',
76 'title': "CNBC's Jim Cramer Says Nobody Wants to Die Getting Infected by Unvaccinated Coworker 'Even for $22 an Hour'.mp4",
77 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
78 'thumbnail': 'https://cdn.jwplayer.com/v2/media/nwpt1elX/poster.jpg?width=720',
80 'timestamp': 1633014214,
81 'upload_date': '20210930',
83 'params': {'skip_download': True}
86 def _real_extract(self
, url
):
87 webpage
= self
._download
_webpage
(url
, None)
88 id = self
._search
_regex
(r
'data-video-id\s?=\s?\"([^\"]+)\"', webpage
, 'id')
89 data_json
= self
._download
_json
(f
'https://cdn.jwplayer.com/v2/media/{id}', id)
90 return self
._parse
_jwplayer
_data
(data_json
)