]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/syfy.py
Update changelog.
[youtubedl] / youtube_dl / extractor / syfy.py
1 from __future__ import unicode_literals
2
3 import re
4
5 from .common import InfoExtractor
6
7
8 class SyfyIE(InfoExtractor):
9 _VALID_URL = r'https?://www\.syfy\.com/videos/.+?vid:(?P<id>\d+)'
10
11 _TEST = {
12 'url': 'http://www.syfy.com/videos/Robot%20Combat%20League/Behind%20the%20Scenes/vid:2631458',
13 'md5': 'e07de1d52c7278adbb9b9b1c93a66849',
14 'info_dict': {
15 'id': 'NmqMrGnXvmO1',
16 'ext': 'flv',
17 'title': 'George Lucas has Advice for his Daughter',
18 'description': 'Listen to what insights George Lucas give his daughter Amanda.',
19 },
20 'add_ie': ['ThePlatform'],
21 }
22
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))