]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/engadget.py
   1 from __future__ 
import unicode_literals
 
   3 from .common 
import InfoExtractor
 
   6 class EngadgetIE(InfoExtractor
): 
   7     _VALID_URL 
= r
'https?://(?:www\.)?engadget\.com/video/(?P<id>[^/?#]+)' 
  11         'url': 'http://www.engadget.com/video/518153925/', 
  12         'md5': 'c6820d4828a5064447a4d9fc73f312c9', 
  16             'title': 'Samsung Galaxy Tab Pro 8.4 Review', 
  18         'add_ie': ['FiveMin'], 
  20         # video with vidible ID 
  21         'url': 'https://www.engadget.com/video/57a28462134aa15a39f0421a/', 
  22         'only_matching': True, 
  25     def _real_extract(self
, url
): 
  26         video_id 
= self
._match
_id
(url
) 
  27         return self
.url_result('aol-video:%s' % video_id
)