]>
jfr.im git - yt-dlp.git/blob - youtube_dl/extractor/skysports.py
2 from __future__
import unicode_literals
4 from .common
import InfoExtractor
5 from ..utils
import strip_or_none
8 class SkySportsIE(InfoExtractor
):
9 _VALID_URL
= r
'https?://(?:www\.)?skysports\.com/watch/video/(?P<id>[0-9]+)'
11 'url': 'http://www.skysports.com/watch/video/10328419/bale-its-our-time-to-shine',
12 'md5': '77d59166cddc8d3cb7b13e35eaf0f5ec',
16 'title': 'Bale: It\'s our time to shine',
17 'description': 'md5:e88bda94ae15f7720c5cb467e777bb6d',
22 def _real_extract(self
, url
):
23 video_id
= self
._match
_id
(url
)
24 webpage
= self
._download
_webpage
(url
, video_id
)
27 '_type': 'url_transparent',
29 'url': 'ooyala:%s' % self
._search
_regex
(
30 r
'data-video-id="([^"]+)"', webpage
, 'ooyala id'),
31 'title': self
._og
_search
_title
(webpage
),
32 'description': strip_or_none(self
._og
_search
_description
(webpage
)),