From 666913e5465e2b417a9f0700e7cb0f310d6ed362 Mon Sep 17 00:00:00 2001 From: sepro Date: Sun, 12 Jan 2025 08:40:42 +0100 Subject: [PATCH] Adjust naming --- yt_dlp/extractor/nest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yt_dlp/extractor/nest.py b/yt_dlp/extractor/nest.py index 222d840d4..833bc0ec1 100644 --- a/yt_dlp/extractor/nest.py +++ b/yt_dlp/extractor/nest.py @@ -52,10 +52,9 @@ class NestIE(InfoExtractor): f'https://video.nest.com/api/dropcam/cameras.get_by_public_token?token={video_id}', video_id) item = traverse_obj(data, ('items', 0, {dict})) uuid = item.get('uuid') - domain = item.get('live_stream_host') - if not domain or not uuid: + stream_domain = item.get('live_stream_host') + if not stream_domain or not uuid: raise ExtractorError('Unable to construct playlist URL') - m3u8 = f'https://{domain}/nexus_aac/{uuid}/playlist.m3u8?public={video_id}' thumb_domain = item.get('nexus_api_nest_domain_host') return { @@ -68,7 +67,8 @@ class NestIE(InfoExtractor): }), 'thumbnail': f'https://{thumb_domain}/get_image?uuid={uuid}&public={video_id}' if thumb_domain else None, 'availability': 'public' if item.get('is_public') else None, - 'formats': self._extract_m3u8_formats(m3u8, video_id, 'mp4', live=True), + 'formats': self._extract_m3u8_formats( + f'https://{stream_domain}/nexus_aac/{uuid}/playlist.m3u8?public={video_id}', video_id, 'mp4', live=True), 'is_live': True, }