aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2025-02-23 12:24:48 -0600
committerGitHub <noreply@github.com>2025-02-23 18:24:48 +0000
commit9807181cfbf87bfa732f415c30412bdbd77cbf81 (patch)
tree7580c3caad6c9ce0ffafa4668849037fd2c4b5bb
parent7126b472601814b7fd8c9de02069e8fff1764891 (diff)
[ie/lbry] Make m3u8 format extraction non-fatal (#12463)
Closes #12459 Authored by: bashonly
-rw-r--r--yt_dlp/extractor/lbry.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/yt_dlp/extractor/lbry.py b/yt_dlp/extractor/lbry.py
index b0a82be62..e6eef13e5 100644
--- a/yt_dlp/extractor/lbry.py
+++ b/yt_dlp/extractor/lbry.py
@@ -337,10 +337,13 @@ class LBRYIE(LBRYBaseIE):
'vcodec': 'none' if stream_type == 'audio' else None,
})
+ final_url = None
# HEAD request returns redirect response to m3u8 URL if available
- final_url = self._request_webpage(
+ urlh = self._request_webpage(
HEADRequest(streaming_url), display_id, headers=headers,
- note='Downloading streaming redirect url info').url
+ note='Downloading streaming redirect url info', fatal=False)
+ if urlh:
+ final_url = urlh.url
elif result.get('value_type') == 'stream' and stream_type not in self._UNSUPPORTED_STREAM_TYPES:
claim_id, is_live = result['signing_channel']['claim_id'], True