]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/foxsports.py
985542727e4273dc1ee379dc2e82e12a580517c2
1 from __future__
import unicode_literals
3 from .common
import InfoExtractor
10 class FoxSportsIE(InfoExtractor
):
11 _VALID_URL
= r
'https?://(?:www\.)?foxsports\.com/(?:[^/]+/)*(?P<id>[^/]+)'
14 'url': 'http://www.foxsports.com/tennessee/video/432609859715',
15 'md5': 'b49050e955bebe32c301972e4012ac17',
19 'title': 'Courtney Lee on going up 2-0 in series vs. Blazers',
20 'description': 'Courtney Lee talks about Memphis being focused.',
21 'upload_date': '20150423',
22 'timestamp': 1429761109,
23 'uploader': 'NEWA-FNG-FOXSPORTS',
25 'add_ie': ['ThePlatform'],
28 def _real_extract(self
, url
):
29 video_id
= self
._match
_id
(url
)
31 webpage
= self
._download
_webpage
(url
, video_id
)
33 config
= self
._parse
_json
(
34 self
._html
_search
_regex
(
35 r
"""class="[^"]*(?:fs-player|platformPlayer-wrapper)[^"]*".+?data-player-config='([^']+)'""",
36 webpage
, 'data player config'),
39 return self
.url_result(smuggle_url(update_url_query(
40 config
['releaseURL'], {
43 }), {'force_smil_url': True}))