]>
jfr.im git - yt-dlp.git/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',
16 'title': 'George Lucas has Advice for his Daughter',
17 'description': 'Listen to what insights George Lucas give his daughter Amanda.',
21 'skip_download': True,
23 'add_ie': ['ThePlatform'],
26 def _real_extract(self
, url
):
27 mobj
= re
.match(self
._VALID
_URL
, url
)
28 video_id
= mobj
.group('id')
29 webpage
= self
._download
_webpage
(url
, video_id
)
30 return self
.url_result(self
._og
_search
_video
_url
(webpage
))