]> jfr.im git - yt-dlp.git/commitdiff
[ie/mediastream] Make embed extraction non-fatal
authorbashonly <redacted>
Sat, 16 Sep 2023 21:22:21 +0000 (16:22 -0500)
committerbashonly <redacted>
Sat, 16 Sep 2023 21:22:21 +0000 (16:22 -0500)
Authored by: bashonly

yt_dlp/extractor/mediastream.py

index cef769f299b9c7d2266c40f614cf8246e9d9fbcc..d5c9aab8a38e679377b6f0d9f9788fe421be6abb 100644 (file)
@@ -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}))