mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-03 08:19:57 +01:00
[brightcove] Extract all the available formats
This commit is contained in:
parent
065472936a
commit
b0759f0c19
@ -146,10 +146,11 @@ def _extract_video_info(self, video_info):
|
|||||||
renditions = video_info.get('renditions')
|
renditions = video_info.get('renditions')
|
||||||
if renditions:
|
if renditions:
|
||||||
renditions = sorted(renditions, key=lambda r: r['size'])
|
renditions = sorted(renditions, key=lambda r: r['size'])
|
||||||
best_format = renditions[-1]
|
info['formats'] = [{
|
||||||
info.update({
|
'url': rend['defaultURL'],
|
||||||
'url': best_format['defaultURL'],
|
'height': rend.get('frameHeight'),
|
||||||
})
|
'width': rend.get('frameWidth'),
|
||||||
|
} for rend in renditions]
|
||||||
elif video_info.get('FLVFullLengthURL') is not None:
|
elif video_info.get('FLVFullLengthURL') is not None:
|
||||||
info.update({
|
info.update({
|
||||||
'url': video_info['FLVFullLengthURL'],
|
'url': video_info['FLVFullLengthURL'],
|
||||||
|
Loading…
Reference in New Issue
Block a user