]> jfr.im git - yt-dlp.git/blame - yt_dlp/extractor/people.py
Completely change project name to yt-dlp (#85)
[yt-dlp.git] / yt_dlp / 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',
ec85ded8 17 'thumbnail': r're:^https?://.*\.jpg',
f7797076
S
18 'duration': 246.318,
19 'timestamp': 1458720585,
20 'upload_date': '20160323',
21 'uploader_id': '416418724',
22 },
23 'params': {
f7797076
S
24 'skip_download': True,
25 },
26 'add_ie': ['BrightcoveNew'],
27 }
28
29 def _real_extract(self, url):
30 return self.url_result(
31 'http://players.brightcove.net/416418724/default_default/index.html?videoId=ref:%s'
32 % self._match_id(url), 'BrightcoveNew')