mirror of
				https://github.com/ytdl-org/youtube-dl
				synced 2025-10-31 17:53:11 +00:00 
			
		
		
		
	[YoutubeDL] Make sure format id is not empty
This commit is contained in:
		
							parent
							
								
									ac8491fcca
								
							
						
					
					
						commit
						e74e3b63e3
					
				| @ -1500,7 +1500,7 @@ class YoutubeDL(object): | ||||
|             sanitize_string_field(format, 'format_id') | ||||
|             sanitize_numeric_fields(format) | ||||
|             format['url'] = sanitize_url(format['url']) | ||||
|             if format.get('format_id') is None: | ||||
|             if not format.get('format_id'): | ||||
|                 format['format_id'] = compat_str(i) | ||||
|             else: | ||||
|                 # Sanitize format_id from characters used in format selector expression | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sergey M․
						Sergey M․