mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-05-30 11:11:25 +00:00
[ie/loco] Fix livestream extraction
This commit is contained in:
parent
74e90dd9b8
commit
9ae2d820fc
@ -61,7 +61,7 @@ class LocoIE(InfoExtractor):
|
|||||||
video_type, video_id = self._match_valid_url(url).group('type', 'id')
|
video_type, video_id = self._match_valid_url(url).group('type', 'id')
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
stream = traverse_obj(self._search_nextjs_data(webpage, 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 {
|
return {
|
||||||
'formats': self._extract_m3u8_formats(stream['conf']['hls'], video_id),
|
'formats': self._extract_m3u8_formats(stream['conf']['hls'], video_id),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user