mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-27 00:22:09 +00:00
[utils] Allow None mimetypes in mimetype2ext
This commit is contained in:
parent
a1394b820d
commit
eb9ee19422
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue