]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/syfy.py
   1 from __future__ 
import unicode_literals
 
   5 from .common 
import InfoExtractor
 
   8 class SyfyIE(InfoExtractor
): 
   9     _VALID_URL 
= r
'https?://www\.syfy\.com/videos/.+?vid:(?P<id>\d+)' 
  12         'url': 'http://www.syfy.com/videos/Robot%20Combat%20League/Behind%20the%20Scenes/vid:2631458', 
  13         'md5': 'e07de1d52c7278adbb9b9b1c93a66849', 
  17             'title': 'George Lucas has Advice for his Daughter', 
  18             'description': 'Listen to what insights George Lucas give his daughter Amanda.', 
  20         'add_ie': ['ThePlatform'], 
  23     def _real_extract(self
, url
): 
  24         mobj 
= re
.match(self
._VALID
_URL
, url
) 
  25         video_id 
= mobj
.group('id') 
  26         webpage 
= self
._download
_webpage
(url
, video_id
) 
  27         return self
.url_result(self
._og
_search
_video
_url
(webpage
))