mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[pladform] Fix format quality sorting
This commit is contained in:
		| @@ -6,6 +6,7 @@ from ..utils import ( | ||||
|     ExtractorError, | ||||
|     int_or_none, | ||||
|     xpath_text, | ||||
|     qualities, | ||||
| ) | ||||
|  | ||||
|  | ||||
| @@ -55,9 +56,12 @@ class PladformIE(InfoExtractor): | ||||
|                 '%s returned error: %s' % (self.IE_NAME, video.text), | ||||
|                 expected=True) | ||||
|  | ||||
|         quality = qualities(('ld', 'sd', 'hd')) | ||||
|  | ||||
|         formats = [{ | ||||
|             'url': src.text, | ||||
|             'format_id': src.get('quality'), | ||||
|             'quality': quality(src.get('quality')), | ||||
|         } for src in video.findall('./src')] | ||||
|         self._sort_formats(formats) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․