[ie/loco] Fix livestream extraction

This commit is contained in:
sepro 2025-04-17 12:19:37 +02:00
parent 74e90dd9b8
commit 9ae2d820fc

View File

@ -61,7 +61,7 @@ class LocoIE(InfoExtractor):
video_type, video_id = self._match_valid_url(url).group('type', 'id')
webpage = self._download_webpage(url, video_id)
stream = traverse_obj(self._search_nextjs_data(webpage, video_id), (
'props', 'pageProps', ('liveStreamData', 'stream'), {dict}, any, {require('stream info')}))
'props', 'pageProps', ('liveStreamData', 'stream', 'liveStream'), {dict}, any, {require('stream info')}))
return {
'formats': self._extract_m3u8_formats(stream['conf']['hls'], video_id),