aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbashonly <bashonly@bashonly.com>2023-09-16 16:22:21 -0500
committerbashonly <bashonly@bashonly.com>2023-09-16 16:22:21 -0500
commit635ae31f68a3ac7f6393d59657ed711e34ee3552 (patch)
tree91e53db702fa7c59583c517cdd143fe54e037116
parent53675852195d8dd859555d4789944a6887171ff8 (diff)
[ie/mediastream] Make embed extraction non-fatal
Authored by: bashonly
-rw-r--r--yt_dlp/extractor/mediastream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/mediastream.py b/yt_dlp/extractor/mediastream.py
index cef769f29..d5c9aab8a 100644
--- a/yt_dlp/extractor/mediastream.py
+++ b/yt_dlp/extractor/mediastream.py
@@ -14,7 +14,7 @@ class MediaStreamBaseIE(InfoExtractor):
_BASE_URL_RE = r'https?://mdstrm\.com/(?:embed|live-stream)'
def _extract_mediastream_urls(self, webpage):
- yield from traverse_obj(list(self._yield_json_ld(webpage, None)), (
+ yield from traverse_obj(list(self._yield_json_ld(webpage, None, fatal=False)), (
lambda _, v: v['@type'] == 'VideoObject', ('embedUrl', 'contentUrl'),
{lambda x: x if re.match(rf'{self._BASE_URL_RE}/\w+', x) else None}))