mirror of
				https://code.hackerspace.pl/q3k/youtube-dl
				synced 2025-03-16 11:43:02 +00:00 
			
		
		
		
	[youtube] Pick up codecs info from DASH manifest when not set explicitly
This commit is contained in:
		
							parent
							
								
									2988835af5
								
							
						
					
					
						commit
						1b5a1ae257
					
				| @ -824,6 +824,12 @@ class YoutubeIE(YoutubeBaseInfoExtractor): | ||||
|                     except StopIteration: | ||||
|                         full_info = self._formats.get(format_id, {}).copy() | ||||
|                         full_info.update(f) | ||||
|                         codecs = r.attrib.get('codecs') | ||||
|                         if codecs: | ||||
|                             if full_info.get('acodec') == 'none' and 'vcodec' not in full_info: | ||||
|                                 full_info['vcodec'] = codecs | ||||
|                             elif full_info.get('vcodec') == 'none' and 'acodec' not in full_info: | ||||
|                                 full_info['acodec'] = codecs | ||||
|                         formats.append(full_info) | ||||
|                     else: | ||||
|                         existing_format.update(f) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sergey M․
						Sergey M․