]> git.bitcoin.ninja Git - youtube-dl/blob - youtube_dl/extractor/people.py
[README.md] Make download URLs consistent
[youtube-dl] / youtube_dl / extractor / people.py
1 # coding: utf-8
2 from __future__ import unicode_literals
3
4 from .common import InfoExtractor
5
6
7 class 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             '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')