]> jfr.im git - yt-dlp.git/blame - yt_dlp/extractor/people.py
[ie/box] Fix formats extraction (#8649)
[yt-dlp.git] / yt_dlp / extractor / people.py
CommitLineData
f7797076
S
1from .common import InfoExtractor
2
3
4class PeopleIE(InfoExtractor):
5 _VALID_URL = r'https?://(?:www\.)?people\.com/people/videos/0,,(?P<id>\d+),00\.html'
6
7 _TEST = {
8 'url': 'http://www.people.com/people/videos/0,,20995451,00.html',
9 'info_dict': {
10 'id': 'ref:20995451',
11 'ext': 'mp4',
12 'title': 'Astronaut Love Triangle Victim Speaks Out: “The Crime in 2007 Hasn’t Defined Us”',
13 'description': 'Colleen Shipman speaks to PEOPLE for the first time about life after the attack',
ec85ded8 14 'thumbnail': r're:^https?://.*\.jpg',
f7797076
S
15 'duration': 246.318,
16 'timestamp': 1458720585,
17 'upload_date': '20160323',
18 'uploader_id': '416418724',
19 },
20 'params': {
f7797076
S
21 'skip_download': True,
22 },
23 'add_ie': ['BrightcoveNew'],
24 }
25
26 def _real_extract(self, url):
27 return self.url_result(
28 'http://players.brightcove.net/416418724/default_default/index.html?videoId=ref:%s'
29 % self._match_id(url), 'BrightcoveNew')