mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-01 12:20:26 +01:00
[ie/lbry] Make m3u8 format extraction non-fatal (#12463)
Closes #12459 Authored by: bashonly
This commit is contained in:
parent
7126b47260
commit
9807181cfb
@ -337,10 +337,13 @@ class LBRYIE(LBRYBaseIE):
|
|||||||
'vcodec': 'none' if stream_type == 'audio' else None,
|
'vcodec': 'none' if stream_type == 'audio' else None,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
final_url = None
|
||||||
# HEAD request returns redirect response to m3u8 URL if available
|
# 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,
|
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:
|
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
|
claim_id, is_live = result['signing_channel']['claim_id'], True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user