summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-11-06 19:05:41 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-11-06 19:05:41 +0100
commitb0759f0c19fe223406bf3c7e59222183920eb714 (patch)
treeddc5a2a27cd3a109b7316af8eeb6a5b42c905a0b
parent065472936a81fcad263dc2f1b04fdfe4a221eeb9 (diff)
downloadyoutube-dl-b0759f0c19fe223406bf3c7e59222183920eb714.tar.gz
youtube-dl-b0759f0c19fe223406bf3c7e59222183920eb714.tar.xz
youtube-dl-b0759f0c19fe223406bf3c7e59222183920eb714.zip
[brightcove] Extract all the available formats
-rw-r--r--youtube_dl/extractor/brightcove.py9
1 files changed, 5 insertions, 4 deletions
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'],