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