mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-28 09:30:57 +01:00
[utils] Allow None mimetypes in mimetype2ext
This commit is contained in:
parent
a1394b820d
commit
eb9ee19422
@ -1935,6 +1935,9 @@ def error_to_compat_str(err):
|
|||||||
|
|
||||||
|
|
||||||
def mimetype2ext(mt):
|
def mimetype2ext(mt):
|
||||||
|
if mt is None:
|
||||||
|
return None
|
||||||
|
|
||||||
ext = {
|
ext = {
|
||||||
'audio/mp4': 'm4a',
|
'audio/mp4': 'm4a',
|
||||||
}.get(mt)
|
}.get(mt)
|
||||||
|
Loading…
Reference in New Issue
Block a user