aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/fox.py
diff options
context:
space:
mode:
authorischmidt20 <ischmidt20@berkeley.edu>2023-08-01 03:24:04 -0400
committerGitHub <noreply@github.com>2023-08-01 12:54:04 +0530
commit30b29f37159e9226e2f2d5434c9a4096ac4efa2e (patch)
treee3b7c84816b8dffd44ec706a6f1642ae4157fa61 /yt_dlp/extractor/fox.py
parent6d6081dda1290a85bdab6717f239289e3aa74c8e (diff)
downloadhypervideo-pre-30b29f37159e9226e2f2d5434c9a4096ac4efa2e.tar.lz
hypervideo-pre-30b29f37159e9226e2f2d5434c9a4096ac4efa2e.tar.xz
hypervideo-pre-30b29f37159e9226e2f2d5434c9a4096ac4efa2e.zip
[ie/fox] Support foxsports.com (#7724)
Authored by: ischmidt20
Diffstat (limited to 'yt_dlp/extractor/fox.py')
-rw-r--r--yt_dlp/extractor/fox.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/yt_dlp/extractor/fox.py b/yt_dlp/extractor/fox.py
index 8fb4ada6b..e00e977bd 100644
--- a/yt_dlp/extractor/fox.py
+++ b/yt_dlp/extractor/fox.py
@@ -20,7 +20,7 @@ from ..utils import (
class FOXIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?fox\.com/watch/(?P<id>[\da-fA-F]+)'
+ _VALID_URL = r'https?://(?:www\.)?fox(?:sports)?\.com/(?:watch|replay)/(?P<id>[\da-fA-F]+)'
_TESTS = [{
# clip
'url': 'https://www.fox.com/watch/4b765a60490325103ea69888fb2bd4e8/',
@@ -50,6 +50,10 @@ class FOXIE(InfoExtractor):
# sports event, geo-restricted
'url': 'https://www.fox.com/watch/b057484dade738d1f373b3e46216fa2c/',
'only_matching': True,
+ }, {
+ # fox sports replay, geo-restricted
+ 'url': 'https://www.foxsports.com/replay/561f3e071347a24e5e877abc56b22e89',
+ 'only_matching': True,
}]
_GEO_BYPASS = False
_HOME_PAGE_URL = 'https://www.fox.com/'