Browse Source
[utils] Allow None mimetypes in mimetype2ext
master
Sergey M․
8 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
3 additions and
0 deletions
-
youtube_dl/utils.py
|
|
@ -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) |
|
|
|