mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 14:14:54 +01:00
fun
Authored by: bashonly
This commit is contained in:
parent
734d7bd4a3
commit
d07eb72f6f
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
class FOXIE(InfoExtractor):
|
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 = [{
|
_TESTS = [{
|
||||||
# clip
|
# clip
|
||||||
'url': 'https://www.fox.com/watch/4b765a60490325103ea69888fb2bd4e8/',
|
'url': 'https://www.fox.com/watch/4b765a60490325103ea69888fb2bd4e8/',
|
||||||
|
@ -45,23 +45,6 @@ class FOXIE(InfoExtractor):
|
||||||
'params': {
|
'params': {
|
||||||
'skip_download': True,
|
'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
|
# XML endpoint
|
||||||
'url': 'https://www.foxsports.com/watch/fmc-m2du80v5ewz11pbw',
|
'url': 'https://www.foxsports.com/watch/fmc-m2du80v5ewz11pbw',
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
|
|
||||||
class FoxSportsIE(InfoExtractor):
|
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 = [{
|
_TESTS = [{
|
||||||
'url': 'https://www.foxsports.com/watch/play-612168c6700004b',
|
'url': 'https://www.foxsports.com/watch/play-612168c6700004b',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user