From d07eb72f6f526a468e935ef968ccb03aabd99ed4 Mon Sep 17 00:00:00 2001 From: bashonly Date: Fri, 5 Apr 2024 22:18:44 -0500 Subject: [PATCH] fun Authored by: bashonly --- yt_dlp/extractor/fox.py | 19 +------------------ yt_dlp/extractor/foxsports.py | 2 +- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/yt_dlp/extractor/fox.py b/yt_dlp/extractor/fox.py index 8826b2830f..40fbc94907 100644 --- a/yt_dlp/extractor/fox.py +++ b/yt_dlp/extractor/fox.py @@ -22,7 +22,7 @@ class FOXIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?fox(?:sports)?\.com/(?:watch|replay)/(?P[\w-]+)' + _VALID_URL = r'https?://(?:www\.)?fox(?:sports)?\.com/(?:watch|replay)/(?!play-)(?P[\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', diff --git a/yt_dlp/extractor/foxsports.py b/yt_dlp/extractor/foxsports.py index 8e89ccf841..061046fe50 100644 --- a/yt_dlp/extractor/foxsports.py +++ b/yt_dlp/extractor/foxsports.py @@ -5,7 +5,7 @@ class FoxSportsIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?foxsports\.com/watch/(?P[\w-]+)' + _VALID_URL = r'https?://(?:www\.)?foxsports\.com/watch/(?Pplay-[\w-]+)' _TESTS = [{ 'url': 'https://www.foxsports.com/watch/play-612168c6700004b', 'info_dict': {