You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
800 B

  1. from __future__ import unicode_literals
  2. from .common import InfoExtractor
  3. class EngadgetIE(InfoExtractor):
  4. _VALID_URL = r'https?://www.engadget.com/video/(?P<id>[^/?#]+)'
  5. _TESTS = [{
  6. # video with 5min ID
  7. 'url': 'http://www.engadget.com/video/518153925/',
  8. 'md5': 'c6820d4828a5064447a4d9fc73f312c9',
  9. 'info_dict': {
  10. 'id': '518153925',
  11. 'ext': 'mp4',
  12. 'title': 'Samsung Galaxy Tab Pro 8.4 Review',
  13. },
  14. 'add_ie': ['FiveMin'],
  15. }, {
  16. # video with vidible ID
  17. 'url': 'https://www.engadget.com/video/57a28462134aa15a39f0421a/',
  18. 'only_matching': True,
  19. }]
  20. def _real_extract(self, url):
  21. video_id = self._match_id(url)
  22. return self.url_result('aol-video:%s' % video_id)