mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[extractor/lbry] Update livestream API (#4042)
Authored by: flashdagger
This commit is contained in:
		| @@ -192,10 +192,11 @@ class LBRYIE(LBRYBaseIE): | |||||||
|             claim_id, is_live = result['signing_channel']['claim_id'], True |             claim_id, is_live = result['signing_channel']['claim_id'], True | ||||||
|             headers = {'referer': 'https://player.odysee.live/'} |             headers = {'referer': 'https://player.odysee.live/'} | ||||||
|             live_data = self._download_json( |             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'] |                 note='Downloading livestream JSON metadata')['data'] | ||||||
|             streaming_url = final_url = live_data.get('url') |             streaming_url = final_url = live_data.get('VideoURL') | ||||||
|             if not final_url and not live_data.get('live'): |             if not final_url and not live_data.get('Live'): | ||||||
|                 self.raise_no_formats('This stream is not live', True, claim_id) |                 self.raise_no_formats('This stream is not live', True, claim_id) | ||||||
|         else: |         else: | ||||||
|             raise UnsupportedError(url) |             raise UnsupportedError(url) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 MMM
					MMM