mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[ie/beacon] Update for linter changes
This commit is contained in:
parent
9c8a29fb91
commit
32dc95c458
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue