[ie/beacon] Update for linter changes

This commit is contained in:
Deukhoofd 2024-08-30 22:54:19 +02:00
parent 9c8a29fb91
commit 32dc95c458
No known key found for this signature in database
GPG Key ID: F63E044490819F6F
1 changed files with 6 additions and 6 deletions

View File

@ -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 @@ class BeaconTvIE(InfoExtractor):
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