mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[brightcove] Extract all the available formats
This commit is contained in:
		| @@ -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'], | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz