people.py 1.1 KB

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