logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git

people.py (1140B)


  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': r're:^https?://.*\.jpg',
  14. 'duration': 246.318,
  15. 'timestamp': 1458720585,
  16. 'upload_date': '20160323',
  17. 'uploader_id': '416418724',
  18. },
  19. 'params': {
  20. 'skip_download': True,
  21. },
  22. 'add_ie': ['BrightcoveNew'],
  23. }
  24. def _real_extract(self, url):
  25. return self.url_result(
  26. 'http://players.brightcove.net/416418724/default_default/index.html?videoId=ref:%s'
  27. % self._match_id(url), 'BrightcoveNew')