Authored by: bashonly
This commit is contained in:
bashonly 2024-04-05 22:18:44 -05:00
parent 734d7bd4a3
commit d07eb72f6f
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0
2 changed files with 2 additions and 19 deletions

View File

@ -22,7 +22,7 @@ from ..utils import (
class FOXIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?fox(?:sports)?\.com/(?:watch|replay)/(?P<id>[\w-]+)'
_VALID_URL = r'https?://(?:www\.)?fox(?:sports)?\.com/(?:watch|replay)/(?!play-)(?P<id>[\w-]+)'
_TESTS = [{
# clip
'url': 'https://www.fox.com/watch/4b765a60490325103ea69888fb2bd4e8/',
@ -45,23 +45,6 @@ class FOXIE(InfoExtractor):
'params': {
'skip_download': True,
},
}, {
'url': 'https://www.foxsports.com/watch/play-612168c6700004b',
'md5': '8eee3db207783070173cbc8b99639688',
'info_dict': {
'id': 'play-612168c6700004b',
'ext': 'mp4',
'title': 'Mario Pasalic scores decisive penalty kick to help Croatia knock out Japan | 2022 FIFA World Cup',
'description': 'Mario Pasalic scores the game-winning PK in shootouts to clinch a win for Croatia against Japan.',
'duration': 31,
'timestamp': 1670262586,
'upload_date': '20221205',
'creators': ['FOX'],
'series': 'Mario Pasalic scores decisive penalty kick to help Croatia knock out Japan | 2022 FIFA World Cup',
'age_limit': 14,
'episode': 'Mario Pasalic scores decisive penalty kick to help Croatia knock out Japan | 2022 FIFA World Cup',
'thumbnail': r're:^https?://.*\.jpg$',
},
}, {
# XML endpoint
'url': 'https://www.foxsports.com/watch/fmc-m2du80v5ewz11pbw',

View File

@ -5,7 +5,7 @@ from ..utils import float_or_none, make_archive_id, smuggle_url
class FoxSportsIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?foxsports\.com/watch/(?P<id>[\w-]+)'
_VALID_URL = r'https?://(?:www\.)?foxsports\.com/watch/(?P<id>play-[\w-]+)'
_TESTS = [{
'url': 'https://www.foxsports.com/watch/play-612168c6700004b',
'info_dict': {