mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[mdr] Use centralized format selection
This commit is contained in:
		| @@ -52,10 +52,11 @@ class MDRIE(InfoExtractor): | ||||
|                     'format_id': u'%s-%d' % (media_type, vbr), | ||||
|                 }) | ||||
|             formats.append(format) | ||||
|         formats.sort(key=lambda f: (f.get('vbr'), f['abr'])) | ||||
|         if not formats: | ||||
|             raise ExtractorError(u'Could not find any valid formats') | ||||
|  | ||||
|         self._sort_formats(formats) | ||||
|  | ||||
|         return { | ||||
|             'id': video_id, | ||||
|             'title': title, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister