]> jfr.im git - yt-dlp.git/blame - youtube_dlc/extractor/foxsports.py
[skip travis] renaming
[yt-dlp.git] / youtube_dlc / extractor / foxsports.py
CommitLineData
6a8422b9
S
1from __future__ import unicode_literals
2
3from .common import InfoExtractor
6a8422b9
S
4
5
6class FoxSportsIE(InfoExtractor):
35328915 7 _VALID_URL = r'https?://(?:www\.)?foxsports\.com/(?:[^/]+/)*video/(?P<id>\d+)'
6a8422b9
S
8
9 _TEST = {
ab39a25c 10 'url': 'http://www.foxsports.com/tennessee/video/432609859715',
6cd64b68 11 'md5': 'b49050e955bebe32c301972e4012ac17',
6a8422b9 12 'info_dict': {
6866f244 13 'id': '432609859715',
6cd64b68 14 'ext': 'mp4',
6a8422b9
S
15 'title': 'Courtney Lee on going up 2-0 in series vs. Blazers',
16 'description': 'Courtney Lee talks about Memphis being focused.',
6866f244
RA
17 # TODO: fix timestamp
18 'upload_date': '19700101', # '20150423',
19 # 'timestamp': 1429761109,
6cd64b68 20 'uploader': 'NEWA-FNG-FOXSPORTS',
6a8422b9 21 },
6866f244
RA
22 'params': {
23 # m3u8 download
24 'skip_download': True,
25 },
6a8422b9
S
26 'add_ie': ['ThePlatform'],
27 }
28
29 def _real_extract(self, url):
30 video_id = self._match_id(url)
31
35328915
RA
32 return self.url_result(
33 'https://feed.theplatform.com/f/BKQ29B/foxsports-all?byId=' + video_id, 'ThePlatformFeed')