diff --git a/yt_dlp/extractor/beacon.py b/yt_dlp/extractor/beacon.py index 3a934a661..fe31b8c1d 100644 --- a/yt_dlp/extractor/beacon.py +++ b/yt_dlp/extractor/beacon.py @@ -23,7 +23,7 @@ class BeaconTvIE(InfoExtractor): 'title': 'Your home for Critical Role!', 'timestamp': 1715227200, 'duration': 105.494, - } + }, }] def _real_extract(self, url): @@ -38,9 +38,9 @@ def _real_extract(self, url): raise ExtractorError( 'Failed to extract video. Either the given content is not a video, or it requires authentication', expected=True) - dict = self._parse_jwplayer_data(traverse_obj(content_data, ('contentVideo', 'video', 'videoData', {json.loads})), video_id) - dict["title"] = traverse_obj(content_data, 'title') - dict["description"] = traverse_obj(content_data, 'description') - dict["timestamp"] = parse_iso8601(traverse_obj(content_data, 'publishedAt')) + info = self._parse_jwplayer_data(traverse_obj(content_data, ('contentVideo', 'video', 'videoData', {json.loads})), video_id) + info['title'] = traverse_obj(content_data, 'title') + info['description'] = traverse_obj(content_data, 'description') + info['timestamp'] = parse_iso8601(traverse_obj(content_data, 'publishedAt')) - return dict + return info