mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 00:57:07 -05:00 
			
		
		
		
	[utils] Allow None mimetypes in mimetype2ext
This commit is contained in:
		@@ -1935,6 +1935,9 @@ def error_to_compat_str(err):
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def mimetype2ext(mt):
 | 
			
		||||
    if mt is None:
 | 
			
		||||
        return None
 | 
			
		||||
 | 
			
		||||
    ext = {
 | 
			
		||||
        'audio/mp4': 'm4a',
 | 
			
		||||
    }.get(mt)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user