A feature-rich command-line audio/video downloader
[brightcove] Extract all the available formats
Jaime Marquínez Ferrándizb0759f0c19fe
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.pyindex 0c6e13b9cb..f0b79898c0 100644--- a/youtube_dl/extractor/brightcove.py+++ b/youtube_dl/extractor/brightcove.py@@ -146,10 +146,11 @@ class BrightcoveIE(InfoExtractor):renditions = video_info.get('renditions')if renditions:renditions = sorted(renditions, key=lambda r: r['size'])- best_format = renditions[-1]- info.update({- 'url': best_format['defaultURL'],- })+ info['formats'] = [{+ 'url': rend['defaultURL'],+ 'height': rend.get('frameHeight'),+ 'width': rend.get('frameWidth'),+ } for rend in renditions]elif video_info.get('FLVFullLengthURL') is not None:info.update({'url': video_info['FLVFullLengthURL'],