mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[lynda] Extract all prioritized streams
This commit is contained in:
		| @@ -140,13 +140,14 @@ class LyndaIE(LyndaBaseIE): | |||||||
|  |  | ||||||
|         prioritized_streams = video_json.get('PrioritizedStreams') |         prioritized_streams = video_json.get('PrioritizedStreams') | ||||||
|         if prioritized_streams: |         if prioritized_streams: | ||||||
|             formats.extend([ |             for prioritized_stream_id, prioritized_stream in prioritized_streams.items(): | ||||||
|                 { |                 formats.extend([ | ||||||
|                     'url': video_url, |                     { | ||||||
|                     'width': int_or_none(format_id), |                         'url': video_url, | ||||||
|                     'format_id': format_id, |                         'width': int_or_none(format_id), | ||||||
|                 } for format_id, video_url in prioritized_streams['0'].items() |                         'format_id': '%s-%s' % (prioritized_stream_id, format_id), | ||||||
|             ]) |                     } for format_id, video_url in prioritized_stream.items() | ||||||
|  |                 ]) | ||||||
|  |  | ||||||
|         self._check_formats(formats, video_id) |         self._check_formats(formats, video_id) | ||||||
|         self._sort_formats(formats) |         self._sort_formats(formats) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․