From: Jaime Marquínez Ferrándiz Date: Wed, 6 Nov 2013 18:05:41 +0000 (+0100) Subject: [brightcove] Extract all the available formats X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b0759f0c19fe223406bf3c7e59222183920eb714;p=youtube-dl [brightcove] Extract all the available formats --- diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py index 0c6e13b9c..f0b79898c 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'],