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