diff options
author | Remita Amine <remitamine@gmail.com> | 2018-11-21 09:46:13 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2018-11-21 09:46:36 +0100 |
commit | 35328915b5fe5c8915b924cfbc54bbdd6d6d1430 (patch) | |
tree | c9ed43de0edb8ce4ef23d6fb23e7bca4ce5f5d24 /youtube_dl/extractor/foxsports.py | |
parent | 6c882aa8991383e1c39a6457cbde5dcab260bff5 (diff) |
[foxsports] fix extraction(closes #17543)
Diffstat (limited to 'youtube_dl/extractor/foxsports.py')
-rw-r--r-- | youtube_dl/extractor/foxsports.py | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/youtube_dl/extractor/foxsports.py b/youtube_dl/extractor/foxsports.py index 985542727..596fded20 100644 --- a/youtube_dl/extractor/foxsports.py +++ b/youtube_dl/extractor/foxsports.py @@ -8,7 +8,7 @@ from ..utils import ( class FoxSportsIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?foxsports\.com/(?:[^/]+/)*(?P<id>[^/]+)' + _VALID_URL = r'https?://(?:www\.)?foxsports\.com/(?:[^/]+/)*video/(?P<id>\d+)' _TEST = { 'url': 'http://www.foxsports.com/tennessee/video/432609859715', @@ -28,16 +28,5 @@ class FoxSportsIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) - webpage = self._download_webpage(url, video_id) - - config = self._parse_json( - self._html_search_regex( - r"""class="[^"]*(?:fs-player|platformPlayer-wrapper)[^"]*".+?data-player-config='([^']+)'""", - webpage, 'data player config'), - video_id) - - return self.url_result(smuggle_url(update_url_query( - config['releaseURL'], { - 'mbr': 'true', - 'switch': 'http', - }), {'force_smil_url': True})) + return self.url_result( + 'https://feed.theplatform.com/f/BKQ29B/foxsports-all?byId=' + video_id, 'ThePlatformFeed') |