aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/mediastream.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/mediastream.py')
-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 ae0fb2aed..d2a22f98f 100644
--- a/yt_dlp/extractor/mediastream.py
+++ b/yt_dlp/extractor/mediastream.py
@@ -17,7 +17,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, fatal=False)), (
+ yield from traverse_obj(list(self._yield_json_ld(webpage, None, default={})), (
lambda _, v: v['@type'] == 'VideoObject', ('embedUrl', 'contentUrl'),
{lambda x: x if re.match(rf'{self._BASE_URL_RE}/\w+', x) else None}))