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.

22 lines
612 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>\d+)'
  5. _TEST = {
  6. 'url': 'http://www.engadget.com/video/518153925/',
  7. 'md5': 'c6820d4828a5064447a4d9fc73f312c9',
  8. 'info_dict': {
  9. 'id': '518153925',
  10. 'ext': 'mp4',
  11. 'title': 'Samsung Galaxy Tab Pro 8.4 Review',
  12. },
  13. 'add_ie': ['FiveMin'],
  14. }
  15. def _real_extract(self, url):
  16. video_id = self._match_id(url)
  17. return self.url_result('5min:%s' % video_id)