aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/mlb.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/mlb.py')
-rw-r--r--yt_dlp/extractor/mlb.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/yt_dlp/extractor/mlb.py b/yt_dlp/extractor/mlb.py
index 5fb97083a..dd1f54f87 100644
--- a/yt_dlp/extractor/mlb.py
+++ b/yt_dlp/extractor/mlb.py
@@ -92,6 +92,10 @@ class MLBIE(MLBBaseIE):
(?P<id>\d+)
)
'''
+ _EMBED_REGEX = [
+ r'<iframe[^>]+?src=(["\'])(?P<url>https?://m(?:lb)?\.mlb\.com/shared/video/embed/embed\.html\?.+?)\1',
+ r'data-video-link=["\'](?P<url>http://m\.mlb\.com/video/[^"\']+)',
+ ]
_TESTS = [
{
'url': 'https://www.mlb.com/mariners/video/ackleys-spectacular-catch/c-34698933',