1 from .common
import InfoExtractor
4 class BreitBartIE(InfoExtractor
):
5 _VALID_URL
= r
'https?://(?:www\.)?breitbart\.com/videos/v/(?P<id>[^/?#]+)'
7 'url': 'https://www.breitbart.com/videos/v/5cOz1yup/?pl=Ij6NDOji',
8 'md5': '0aa6d1d6e183ac5ca09207fe49f17ade',
12 'title': 'Watch \u2013 Clyburn: Statues in Congress Have to Go Because they Are Honoring Slavery',
13 'description': 'md5:bac35eb0256d1cb17f517f54c79404d5',
14 'thumbnail': 'https://cdn.jwplayer.com/thumbs/5cOz1yup-1920.jpg',
18 'url': 'https://www.breitbart.com/videos/v/eaiZjVOn/',
19 'only_matching': True,
22 def _real_extract(self
, url
):
23 video_id
= self
._match
_id
(url
)
24 webpage
= self
._download
_webpage
(url
, video_id
)
26 formats
= self
._extract
_m
3u8_formats
(f
'https://cdn.jwplayer.com/manifests/{video_id}.m3u8', video_id
, ext
='mp4')
29 'title': self
._generic
_title
('', webpage
),
30 'description': self
._og
_search
_description
(webpage
),
31 'thumbnail': self
._og
_search
_thumbnail
(webpage
),
32 'age_limit': self
._rta
_search
(webpage
),