]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/foxsports.py
1 from __future__
import unicode_literals
3 from .common
import InfoExtractor
4 from ..utils
import smuggle_url
7 class FoxSportsIE(InfoExtractor
):
8 _VALID_URL
= r
'https?://(?:www\.)?foxsports\.com/(?:[^/]+/)*(?P<id>[^/]+)'
11 'url': 'http://www.foxsports.com/video?vid=432609859715',
15 'title': 'Courtney Lee on going up 2-0 in series vs. Blazers',
16 'description': 'Courtney Lee talks about Memphis being focused.',
18 'add_ie': ['ThePlatform'],
21 def _real_extract(self
, url
):
22 video_id
= self
._match
_id
(url
)
24 webpage
= self
._download
_webpage
(url
, video_id
)
26 config
= self
._parse
_json
(
28 r
"data-player-config='([^']+)'", webpage
, 'data player config'),
31 return self
.url_result(smuggle_url(
32 config
['releaseURL'] + '&manifest=f4m', {'force_smil_url': True}))