mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-11 16:15:46 +01:00
a97bcd80ba
It uses theplatfrom.com, which has been updated to work with f4m manifests
31 lines
931 B
Python
31 lines
931 B
Python
from __future__ import unicode_literals
|
|
|
|
import re
|
|
|
|
from .common import InfoExtractor
|
|
|
|
|
|
class SyfyIE(InfoExtractor):
|
|
_VALID_URL = r'https?://www\.syfy\.com/videos/.+?vid:(?P<id>\d+)'
|
|
|
|
_TEST = {
|
|
'url': 'http://www.syfy.com/videos/Robot%20Combat%20League/Behind%20the%20Scenes/vid:2631458',
|
|
'info_dict': {
|
|
'id': 'NmqMrGnXvmO1',
|
|
'ext': 'flv',
|
|
'title': 'George Lucas has Advice for his Daughter',
|
|
'description': 'Listen to what insights George Lucas give his daughter Amanda.',
|
|
},
|
|
'params': {
|
|
# f4m download
|
|
'skip_download': True,
|
|
},
|
|
'add_ie': ['ThePlatform'],
|
|
}
|
|
|
|
def _real_extract(self, url):
|
|
mobj = re.match(self._VALID_URL, url)
|
|
video_id = mobj.group('id')
|
|
webpage = self._download_webpage(url, video_id)
|
|
return self.url_result(self._og_search_video_url(webpage))
|