A feature-rich command-line audio/video downloader
[extractor/lbry] Update livestream API (#4042)
MMM9fde8a6b1254
diff --git a/yt_dlp/extractor/lbry.py b/yt_dlp/extractor/lbry.pyindex 953ce2e184..909720e8b5 100644--- a/yt_dlp/extractor/lbry.py+++ b/yt_dlp/extractor/lbry.py@@ -192,10 +192,11 @@ class LBRYIE(LBRYBaseIE):claim_id, is_live = result['signing_channel']['claim_id'], Trueheaders = {'referer': 'https://player.odysee.live/'}live_data = self._download_json(- f'https://api.live.odysee.com/v1/odysee/live/{claim_id}', claim_id,+ 'https://api.odysee.live/livestream/is_live', claim_id,+ query={'channel_claim_id': claim_id},note='Downloading livestream JSON metadata')['data']- streaming_url = final_url = live_data.get('url')- if not final_url and not live_data.get('live'):+ streaming_url = final_url = live_data.get('VideoURL')+ if not final_url and not live_data.get('Live'):self.raise_no_formats('This stream is not live', True, claim_id)else:raise UnsupportedError(url)